/* Shared styles for info/policy pages and auth pages */
/* Used by: shipping, size-chart, refunds, guarantee, track-order, gift-cards,
   coupons, safe-shopping, privacy, terms, disclaimer, gdpr, california-privacy,
   anti-spam, sales-tax, do-not-sell, login, signup, forgot-password,
   reset-password, verify-email */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, rgba(45, 198, 83, 0.05) 100%);
    padding: 60px 20px;
    text-align: center;
}

.page-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--medium-gray);
    font-style: italic;
}

/* Page Content */
.page-content {
    padding: 60px 20px;
    background-color: var(--white);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 48px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary-green);
}

.content-subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 20px 0 12px;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.content-list {
    margin: 16px 0;
    padding-left: 24px;
}

.content-list li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.content-link {
    color: var(--bright-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.content-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Highlight Boxes */
.highlight-box {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.highlight-success {
    background-color: #e8f5e9;
    border-left-color: var(--primary-green);
    color: #2e7d32;
}

.highlight-info {
    background-color: #e3f2fd;
    border-left-color: var(--bright-blue);
    color: #1565c0;
}

.highlight-warning {
    background-color: #fff3e0;
    border-left-color: #ff9800;
    color: #e65100;
}

/* Info Table */
.info-table {
    margin: 24px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.info-table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    border-bottom: 1px solid #e0e0e0;
}

.info-table-row:last-child {
    border-bottom: none;
}

.info-table-header {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 700;
}

.info-table-cell {
    padding: 16px;
    font-size: 15px;
}

.info-table-row:not(.info-table-header):nth-child(even) {
    background-color: var(--light-gray);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.contact-method {
    padding: 16px;
    background-color: var(--light-gray);
    border-radius: 8px;
    font-size: 15px;
}

/* Contact Info Box (legal pages) */
.contact-info-box {
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin: 20px 0;
}

.contact-info-box p {
    margin-bottom: 8px;
    font-size: 15px;
}

/* FAQ Items */
.faq-item {
    background: var(--light-gray);
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.faq-q, .faq-question {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.faq-item p, .faq-answer {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-text);
}

/* Button */
.btn-large {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero-title {
        font-size: 32px;
    }

    .page-hero-subtitle {
        font-size: 18px;
    }

    .content-section-title {
        font-size: 24px;
    }

    .info-table-row {
        grid-template-columns: 1fr;
    }

    .info-table-header .info-table-cell:not(:first-child) {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 40px 20px;
    }

    .page-hero-title {
        font-size: 28px;
    }

    .page-hero-subtitle {
        font-size: 16px;
    }
}

/* =============================================================
   AUTH PAGE STYLES
   Used by: login, signup, forgot-password, reset-password,
            verify-email
   ============================================================= */

.auth-section {
    min-height: calc(100vh - 80px - 200px); /* viewport - header - footer estimate */
    padding: 60px 20px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.auth-card {
    padding: 40px;
    background-color: var(--white);
    border-radius: 12px;
}

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

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--medium-gray);
}

.auth-body {
    /* Form content */
}

/* Google OAuth Button */
.btn-google {
    background-color: var(--white);
    color: var(--dark-text);
    border: 2px solid #dadce0;
    font-weight: 600;
    margin-bottom: 24px;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
}

.btn-google .icon {
    margin-right: 8px;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--medium-gray);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e5e5;
}

.auth-divider span {
    padding: 0 16px;
}

/* Form Row Between */
.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-row-between .form-checkbox {
    margin-bottom: 0;
}

/* Password Field with Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--dark-text);
}

/* Auth Links */
.auth-link {
    color: var(--bright-blue);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #0052CC;
    text-decoration: underline;
}

.auth-link-bold {
    color: var(--bright-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link-bold:hover {
    color: #0052CC;
    text-decoration: underline;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--medium-gray);
}

/* Alert Content with Refresh Button */
.alert-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.alert-refresh-btn {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.alert-refresh-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Auth Status Icons */
.auth-status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auth-status-icon--success {
    background-color: #2DC653;
}

.auth-status-icon--error {
    background-color: #E63946;
}

.auth-status-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

/* Resend Verification */
.auth-resend-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.auth-resend-status {
    font-size: 14px;
    margin-top: 8px;
}

/* Auth Help Section */
.auth-help {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.auth-help-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.auth-help-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.auth-help-list li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: var(--medium-gray);
}

.auth-help-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--bright-blue);
    font-weight: bold;
}

.auth-help-contact {
    font-size: 14px;
    color: var(--medium-gray);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    background-color: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Auth Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 24px;
    }

    .auth-title {
        font-size: 24px;
    }

    .form-row-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
