/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.auth-modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

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

.auth-modal-header .auth-logo {
    height: 48px;
    margin-bottom: 16px;
}

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

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

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.back-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.05);
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message .success-icon {
    color: var(--accent-green);
    margin-bottom: 16px;
}

.success-message h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-message p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.success-message .user-email {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.success-message .small-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

.auth-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.auth-footer .small-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* Button Styles for Auth Modal */
.btn-google {
    background: #FFFFFF;
    color: #1F1F1F;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #F8F9FA;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-modal .btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #3AA0D9);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 16px rgba(74, 192, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal .btn-primary:hover {
    background: linear-gradient(135deg, #3AA0D9, var(--accent-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 192, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .auth-modal-content {
        padding: 32px 24px;
    }
}
