/* ==========================================================================
   SFCSS Marketplace — Auth Pages Design System
   Two-column layout inspired by the alumni login page
   Palette: Brand Green #1a6b3c · Gold accent #c38b4d · Warm emerald tones
   ========================================================================== */

/* ── 1. PAGE SHELL ── */
.mp-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8faf9;
    overflow-x: hidden;
}

.mp-auth-main {
    flex: 1;
    display: flex;
    align-items: stretch;
}

/* ── 2. LEFT PANEL — MARKETPLACE BRANDING ── */
.mp-auth-brand {
    flex: 1;
    background: linear-gradient(160deg, #0d4a24 0%, #1a6b3c 45%, #2d8f55 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.mp-auth-brand::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(195, 139, 77, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mp-auth-brand::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(45, 143, 85, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

/* Grid pattern */
.mp-brand-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(45deg, #fff 25%, transparent 25%),
        linear-gradient(-45deg, #fff 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #fff 75%),
        linear-gradient(-45deg, transparent 75%, #fff 75%);
    background-size: 50px 50px;
    background-position: 0 0, 0 25px, 25px -25px, -25px 0;
    pointer-events: none;
}

.mp-brand-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

/* Badge */
.mp-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.mp-brand-badge i {
    font-size: 0.85rem;
    color: #c38b4d;
}

/* Headline */
.mp-brand-headline {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.mp-brand-headline .mp-highlight {
    background: linear-gradient(90deg, #c38b4d, #e6b96e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mp-brand-subtext {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

/* Feature cards */
.mp-brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.mp-feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.2s;
}

.mp-feature-card:hover {
    transform: translateY(-2px);
}

.mp-feature-card i {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #e6b96e;
}

.mp-feature-card strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.mp-feature-card span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Trust signals */
.mp-trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.mp-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.mp-trust-item i {
    font-size: 0.75rem;
    color: #c38b4d;
}

/* Testimonial */
.mp-brand-testimonial {
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid #c38b4d;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
}

.mp-testimonial-quote {
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.mp-testimonial-author {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp-testimonial-author .mp-author-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c38b4d;
}

/* ── 3. RIGHT PANEL — FORM ── */
.mp-auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    max-width: 540px;
    min-width: 420px;
    background: #fff;
}

.mp-form-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mp-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.mp-home-link:hover {
    color: #1a6b3c;
}

/* Form header */
.mp-form-header {
    margin-bottom: 2rem;
}

.mp-form-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(26, 107, 60, 0.1), rgba(26, 107, 60, 0.05));
    border: 2px solid rgba(26, 107, 60, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.mp-form-icon i {
    font-size: 1.5rem;
    color: #1a6b3c;
}

.mp-form-greeting {
    font-size: 0.85rem;
    color: #1a6b3c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.mp-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.mp-form-subtitle {
    font-size: 0.88rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Success message */
.mp-success-message {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.mp-success-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mp-success-icon i {
    color: #fff;
    font-size: 1rem;
}

.mp-success-content {
    flex: 1;
}

.mp-success-content strong {
    display: block;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.mp-success-content p {
    color: #15803d;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.5;
}

/* Field groups */
.mp-field-group {
    margin-bottom: 1.25rem;
}

.mp-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3a3a4a;
    margin-bottom: 0.4rem;
}

.mp-field-input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border: 1.5px solid #e0e5ec;
    border-radius: 10px;
    background: #fafbfc;
    color: #1a1a2e;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.mp-field-input:focus {
    border-color: #1a6b3c;
    box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.1);
    background: #fff;
}

.mp-field-input.is-invalid {
    border-color: #dc3545;
}

/* Password wrapper */
.mp-password-wrapper {
    position: relative;
}

.mp-password-wrapper .mp-field-input {
    padding-right: 3rem;
}

.mp-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.mp-password-toggle:hover {
    color: #1a6b3c;
}

/* Field hints & errors */
.mp-field-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.3rem;
}

.mp-field-error {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #ef4444;
}

.mp-field-error i {
    font-size: 0.75rem;
    flex-shrink: 0;
}

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

.mp-remember-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #6c757d;
    cursor: pointer;
}

.mp-remember-check input[type="checkbox"] {
    accent-color: #1a6b3c;
    width: 15px;
    height: 15px;
}

.mp-forgot-link {
    font-size: 0.82rem;
    color: #1a6b3c;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.mp-forgot-link:hover {
    opacity: 0.8;
}

/* Submit button */
.mp-submit-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a6b3c, #238a4e);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mp-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 107, 60, 0.35);
}

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

.mp-submit-btn:disabled,
.mp-submit-btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.mp-submit-btn.is-loading span {
    opacity: 0.6;
}

/* Secondary button */
.mp-secondary-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1.5px solid #1a6b3c;
    border-radius: 10px;
    background: transparent;
    color: #1a6b3c;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.mp-secondary-btn:hover {
    background: rgba(26, 107, 60, 0.05);
    border-color: #155c32;
    color: #155c32;
}

/* Divider */
.mp-form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 0.78rem;
    color: #9ca3af;
}

.mp-form-divider::before,
.mp-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Alumni CTA card */
.mp-alumni-cta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border: 1.5px solid #e0e5ec;
    border-left: 4px solid #1a6b3c;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mp-alumni-cta:hover {
    border-color: #1a6b3c;
    box-shadow: 0 2px 8px rgba(26, 107, 60, 0.1);
}

.mp-alumni-cta-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 107, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mp-alumni-cta-icon i {
    color: #1a6b3c;
    font-size: 1rem;
}

.mp-alumni-cta-text h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.15rem;
}

.mp-alumni-cta-text p {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.mp-alumni-cta-arrow {
    margin-left: auto;
    color: #1a6b3c;
    font-size: 0.85rem;
}

/* Terms checkbox */
.mp-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mp-terms-check input[type="checkbox"] {
    accent-color: #1a6b3c;
    width: 16px;
    height: 16px;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.mp-terms-check label {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.5;
}

.mp-terms-check label a {
    color: #1a6b3c;
    text-decoration: none;
    font-weight: 500;
}

.mp-terms-check label a:hover {
    text-decoration: underline;
}

/* Footer links */
.mp-form-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f5;
}

.mp-form-footer a {
    font-size: 0.78rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s;
}

.mp-form-footer a:hover {
    color: #1a6b3c;
}

.mp-form-footer .mp-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d1d5db;
    display: inline-block;
    vertical-align: middle;
}

/* Buyer info banner */
.mp-buyer-info {
    background: linear-gradient(135deg, #f0f9f4, #e8f5ee);
    border: 1px solid #c6e9d4;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.mp-buyer-info i {
    color: #1a6b3c;
    font-size: 0.85rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.mp-buyer-info p {
    font-size: 0.8rem;
    color: #3a5a44;
    margin: 0;
    line-height: 1.5;
}

.mp-buyer-info p strong {
    color: #1a6b3c;
}

.mp-buyer-info a {
    color: #1a6b3c;
    font-weight: 600;
    text-decoration: none;
}

.mp-buyer-info a:hover {
    text-decoration: underline;
}

/* Switch link */
.mp-switch-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: #6c757d;
}

.mp-switch-link a {
    color: #1a6b3c;
    font-weight: 600;
    text-decoration: none;
}

.mp-switch-link a:hover {
    text-decoration: underline;
}

/* Mobile bottom bar */
.mp-mobile-bar {
    display: none;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.72rem;
    color: #9ca3af;
    background: #f8faf9;
}

/* ── 4. ANIMATIONS ── */
.mp-anim-up-1 { animation: mpSlideUp 0.6s 0.1s both; }
.mp-anim-up-2 { animation: mpSlideUp 0.6s 0.2s both; }
.mp-anim-up-3 { animation: mpSlideUp 0.6s 0.3s both; }
.mp-anim-up-4 { animation: mpSlideUp 0.6s 0.4s both; }
.mp-anim-up-5 { animation: mpSlideUp 0.6s 0.5s both; }
.mp-anim-up-6 { animation: mpSlideUp 0.6s 0.6s both; }
.mp-anim-up-7 { animation: mpSlideUp 0.6s 0.7s both; }

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

/* ── 5. RESPONSIVE ── */
@media (max-width: 991px) {
    .mp-auth-main {
        flex-direction: column;
    }

    .mp-auth-brand {
        padding: 2.5rem 2rem;
        min-height: auto;
    }

    .mp-brand-headline {
        font-size: 1.6rem;
    }

    .mp-brand-features {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .mp-auth-form-panel {
        max-width: 100%;
        min-width: auto;
        padding: 2rem 1.5rem;
    }

    .mp-brand-testimonial {
        display: none;
    }
}

@media (max-width: 576px) {
    .mp-auth-brand {
        padding: 2rem 1.25rem;
    }

    .mp-brand-features {
        grid-template-columns: 1fr;
    }

    .mp-brand-subtext {
        font-size: 0.92rem;
    }

    .mp-auth-form-panel {
        padding: 1.5rem 1.25rem;
    }

    .mp-mobile-bar {
        display: block;
    }
}
