/* ==================================================================
   Auth Modal Styles
   ================================================================== */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal.show {
    display: flex;
    opacity: 1;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 440px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.auth-modal.show .auth-modal-content {
    transform: translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-modal-icon {
    color: var(--primary);
    margin-bottom: 16px;
}

.auth-modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.auth-modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.auth-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-email-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: 8px;
    margin-bottom: 20px;
}

.auth-email-display span {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.auth-change-email {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.auth-change-email:hover {
    background: rgba(0, 123, 255, 0.1);
}

.auth-info-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}

.auth-info-box svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

.auth-info-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.auth-error {
    padding: 12px 16px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    color: #dc3545;
    font-size: 14px;
    margin-top: 16px;
}

/* Dark mode support */
body[data-theme="dark"] .auth-modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

body[data-theme="dark"] .auth-modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

body[data-theme="dark"] .auth-form-group input {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .auth-form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(100, 180, 255, 0.2);
}

body[data-theme="dark"] .auth-info-box {
    background: rgba(100, 180, 255, 0.15);
    border-color: rgba(100, 180, 255, 0.3);
}
