/* ========================================
   AUTH PAGES (Login & Signup)
   Warm-themed authentication forms
   ======================================== */

html, body {
    background: var(--bg-cream);
}
body {
    min-height: 100vh;
    color: var(--text-dark);
}

/* Login */
.auth-section {
    padding: 140px 0 80px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}
.auth-container {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}
.auth-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.auth-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Signup */
.signup-section {
    padding: 120px 0 80px;
}
.signup-container {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}
.signup-header {
    text-align: center;
    margin-bottom: 40px;
}
.signup-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.signup-header p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
}

/* Shared Auth Card */
.auth-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

/* Form overrides */
.auth-card .form-group {
    margin-bottom: 24px;
}
.auth-card .form-label {
    display: block;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}
.auth-card .form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card .form-input::placeholder {
    color: #B5A89A;
}
.auth-card .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}
.auth-card .form-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #B5A89A;
}
.auth-card .form-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
}
.auth-card .form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.auth-card .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}
.auth-card .form-check-label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}
.auth-card .form-check-label a {
    color: var(--color-primary);
    text-decoration: none;
}
.auth-card .form-check-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--text-dark);
    color: var(--bg-cream);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn-submit:hover {
    background: var(--text-body);
}
.btn-submit:active {
    transform: scale(0.98);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 14px;
}
.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* Error Alert */
.auth-card .alert-error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 24px;
    border-left: none;
}

/* Signup Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}
.stat-item .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.stat-item .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trust Signals */
.trust-signals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.trust-item {
    text-align: center;
}
.trust-item .icon {
    font-size: 24px;
    color: var(--accent-sage);
    margin-bottom: 8px;
}
.trust-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Steps Section */
.steps-section {
    padding: 100px 0;
    background: var(--bg-warm);
}
.steps-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.steps-section .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}
.step-item {
    text-align: center;
}
.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 20px;
}
.step-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.step-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-cream);
}
.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.testimonials-section .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.testimonials-section .section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-warm-lg);
}
.testimonial-card blockquote {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 28px;
    font-style: normal;
    position: relative;
    padding-top: 24px;
}
.testimonial-card blockquote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 0;
    font-size: 48px;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.35;
    font-family: Georgia, serif;
}
.testimonial-card blockquote::after {
    content: none;
}
.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-card .testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--accent-amber));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}
.testimonial-author .name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 2px;
}
.testimonial-author .title {
    font-size: 12px;
    color: var(--text-muted);
}

/* Login support content */
.auth-help-section {
    padding: 96px 0;
    background: var(--bg-warm);
}
.auth-help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.auth-help-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-warm-sm);
}
.auth-help-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.auth-help-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
}

.auth-support-section {
    padding: 0 0 100px;
    background: var(--bg-cream);
}
.auth-support-card {
    background: linear-gradient(145deg, rgba(246, 228, 206, 0.75), rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: center;
}
.auth-support-card h2 {
    font-size: 32px;
    margin-bottom: 14px;
    color: var(--text-dark);
}
.auth-support-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
}
.auth-support-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}
.auth-text-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}
.auth-text-link:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .auth-help-grid {
        grid-template-columns: 1fr;
    }
    .auth-support-card {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .trust-signals {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .steps-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .signup-header h1,
    .auth-header h1 {
        font-size: 32px;
    }
    .auth-card {
        padding: 28px;
    }
    .auth-help-section,
    .testimonials-section,
    .steps-section {
        padding: 72px 0;
    }
    .auth-support-section {
        padding-bottom: 72px;
    }
    .auth-support-card {
        padding: 28px;
    }
    .auth-support-card h2 {
        font-size: 28px;
    }
}
