/* =============================================
   Auth Pages - Split Screen Layout
   ============================================= */

:root {
    --auth-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* Split Screen Container */
.split-screen {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Form */
.form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--bg-body);
}

.form-container {
    width: 100%;
    max-width: 450px;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-logo:hover {
    color: var(--primary);
}

.auth-logo svg {
    width: 36px;
    height: 36px;
}

.auth-logo .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Header */
.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    pointer-events: none;
    transition: stroke 0.3s;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

[data-theme="dark"] .form-input {
    background: var(--bg-elevated);
}

.form-input:hover {
    border-color: var(--border-hover);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input:focus ~ .input-icon {
    stroke: var(--primary);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input {
    display: none;
}

.checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

[data-theme="dark"] .checkbox-label .checkmark {
    background: var(--bg-elevated);
}

.checkbox-label:hover .checkmark {
    border-color: var(--border-hover);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Form Options Row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-options a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-options a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--gradient);
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-elevated);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Right Side - Benefits */
.benefits-side {
    flex: 1;
    background: var(--gradient);
    color: white;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.benefits-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.benefits-content {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.benefits-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.benefits-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* Testimonial Card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.author-info h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.85rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.feature-list li svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Benefit Items */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.benefit-text p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 1.75rem;
    font-weight: 800;
    display: block;
}

.trust-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Security Footer */
.security-footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.75;
}

.security-footer svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -3px;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

[data-theme="dark"] .alert-danger {
    color: #f87171;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

[data-theme="dark"] .alert-success {
    color: #4ade80;
}

/* =============================================
   Magic Link Message Page
   ============================================= */
.message-container {
    text-align: center;
    max-width: 500px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.info-box {
    text-align: left;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    margin: 1.5rem 0;
}

[data-theme="dark"] .info-box {
    background: var(--bg-elevated);
}

.info-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.steps-list li:last-child {
    border-bottom: none;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.hint-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    text-align: left;
    margin-bottom: 1.5rem;
}

.hint-box svg {
    width: 24px;
    height: 24px;
    stroke: #f59e0b;
    flex-shrink: 0;
}

.hint-box strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.hint-box p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.hint-box a {
    color: var(--primary);
    text-decoration: underline;
}

.hint-small {
    margin-top: 0.5rem !important;
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 991px) {
    .split-screen {
        flex-direction: column;
    }

    .benefits-side {
        padding: 2.5rem 1.5rem;
        order: -1;
    }

    .benefits-title {
        font-size: 1.75rem;
    }

    .benefits-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .form-side {
        padding: 2.5rem 1.5rem;
    }

    .testimonial-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .benefit-item {
        margin-bottom: 1.25rem;
    }

    .trust-indicators {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        gap: 1.5rem;
    }

    .trust-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-side {
        padding: 2rem 1rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .benefits-side {
        padding: 2rem 1rem;
    }

    .benefits-title {
        font-size: 1.5rem;
    }

    .trust-indicators {
        flex-wrap: wrap;
        justify-content: center;
    }
}
