/*==========================================================================
    Fanfare Perfect — Auth Pages (Modern Split-Panel Design)
==========================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --fp-green-50:  #fffbeb;
    --fp-green-100: #fef3c7;
    --fp-green-200: #fde68a;
    --fp-green-300: #fcd34d;
    --fp-green-400: #fbbf24;
    --fp-green-500: #f59e0b;
    --fp-green-600: #d97706;
    --fp-green-700: #b45309;
    --fp-green-800: #92400e;
    --fp-green-900: #78350f;
    --fp-ink-950:   #050d0a;
    --fp-ink-900:   #0b1310;
    --fp-ink-800:   #0d1a15;
    --fp-ink-700:   #123027;
    --fp-line:      rgba(245, 158, 11, 0.18);
    --fp-line-soft: rgba(245, 158, 11, 0.08);
    --fp-text:      #e5e7eb;
    --fp-mute:      #94a3b8;
    --fp-danger:    #ef4444;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--fp-ink-900);
    color: var(--fp-text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------------------
    Split-panel container
--------------------------------------------------------------------------*/
.accounts {
    min-height: 100vh;
    background: radial-gradient(120% 90% at 100% 0%, #063726 0%, var(--fp-ink-900) 45%, #050d0a 100%);
    position: relative;
    overflow-x: hidden;
    padding: 0 !important;
}

.accounts::before,
.accounts::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.accounts::before {
    width: 520px; height: 520px;
    top: -180px; right: -160px;
    background: radial-gradient(circle, rgba(245,158,11,0.55), transparent 65%);
    animation: fp-drift 14s ease-in-out infinite;
}
.accounts::after {
    width: 460px; height: 460px;
    bottom: -180px; left: -140px;
    background: radial-gradient(circle, rgba(251,191,36,0.35), transparent 65%);
    animation: fp-drift 18s ease-in-out infinite reverse;
}

@keyframes fp-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -20px) scale(1.06); }
}

.accounts > div.row {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    margin: 0 !important;
    align-items: stretch;
}

/*--------------------------------------------------------------------------
    Left brand panel
--------------------------------------------------------------------------*/
.accounts .fp-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px 40px;
    background:
        linear-gradient(160deg, rgba(6,78,59,0.85) 0%, rgba(4,120,87,0.35) 60%, transparent 100%),
        radial-gradient(circle at 20% 20%, rgba(245,158,11,0.35), transparent 55%);
    border-right: 1px solid var(--fp-line);
    color: #fff;
    position: relative;
    overflow: hidden;
    gap: 28px;
}

.accounts .fp-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245,158,11,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,158,11,0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at 30% 20%, #000 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 40%, transparent 75%);
    opacity: 0.5;
    pointer-events: none;
}

.accounts .fp-brand-panel > * { position: relative; z-index: 1; }

.accounts .fp-brand-logo a { text-decoration: none; }

.accounts .fp-brand-hero h2 {
    font-size: 2.15rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 20px 0 14px;
    color: #fff;
}
.accounts .fp-brand-hero h2 span { color: var(--fp-green-300); }

.accounts .fp-brand-hero p {
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(230, 254, 244, 0.78);
    max-width: 440px;
    margin: 0 0 22px;
}

.accounts .fp-brand-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.accounts .fp-brand-features li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 14px;
    background: rgba(11, 19, 16, 0.45);
    border: 1px solid var(--fp-line);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.accounts .fp-brand-features li:hover {
    transform: translateX(4px);
    border-color: rgba(251, 191, 36, 0.55);
}
.accounts .fp-brand-features i {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--fp-green-500), var(--fp-green-700));
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.accounts .fp-brand-features strong {
    color: #fff;
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.98rem;
}
.accounts .fp-brand-features small {
    color: rgba(230, 254, 244, 0.62);
    font-size: 0.82rem;
    line-height: 1.45;
}

.accounts .fp-brand-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(230,254,244,0.55);
    padding-top: 24px;
    border-top: 1px solid var(--fp-line-soft);
}

/*--------------------------------------------------------------------------
    Right form panel
--------------------------------------------------------------------------*/
.accounts .fp-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.accounts .fp-form-card {
    width: 100%;
    max-width: 460px;
    padding: 34px 32px;
    background: rgba(13, 26, 21, 0.72);
    border: 1px solid var(--fp-line);
    border-radius: 20px;
    box-shadow:
        0 24px 60px -20px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fp-rise 0.55s cubic-bezier(.2,.7,.2,1);
}

@keyframes fp-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.accounts .fp-form-card .fp-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 22px;
}

.accounts .fp-form-card h1 {
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 700;
    letter-spacing: -0.005em;
    margin: 0 0 10px !important;
    padding: 0 !important;
    text-align: left;
}

.accounts .fp-form-card > p,
.accounts .fp-form-card .fp-subtitle {
    color: var(--fp-mute) !important;
    font-size: 0.9rem;
    margin: 0 0 18px !important;
    text-align: left !important;
}

/* Legacy compatibility: preserve old markup fallback */
.accounts section {
    /* Keep — old markup still works if some blade isn't updated */
    margin: 5vh auto;
    max-width: 460px;
}
.accounts section > center { margin-bottom: 14px; }
.accounts section h1 {
    color: #fff;
    text-align: center;
    padding: 6px 0;
    font-size: 24px !important;
    font-weight: 700;
}

/* Form controls */
.accounts .form-floating {
    margin-bottom: 18px;
    position: relative;
}
.accounts .form-floating > .form-control:not(:focus)::placeholder {
    color: transparent !important;
}
.accounts .form-floating > .form-control,
.accounts .form-control {
    background: rgba(5, 13, 10, 0.75) !important;
    border: 1px solid rgba(245, 158, 11, 0.22) !important;
    color: #fff !important;
    height: 58px;
    border-radius: 12px !important;
    padding: 1.2rem 0.9rem 0.4rem !important;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.accounts .form-control::placeholder { color: rgba(148, 163, 184, 0.45); }
.accounts .form-floating > label {
    color: rgba(148, 163, 184, 0.85) !important;
    font-weight: 500;
    padding: 1rem 0.9rem;
}
.accounts .form-floating > .form-control:focus ~ label,
.accounts .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--fp-green-400) !important;
    opacity: 1 !important;
    transform: scale(0.82) translateY(-0.65rem) translateX(0.1rem) !important;
}
.accounts .form-control:focus {
    background: rgba(5, 13, 10, 0.95) !important;
    border-color: var(--fp-green-500) !important;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.18) !important;
    outline: 0;
    color: #fff !important;
}

/* Primary button */
.button, .fp-btn-primary {
    width: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, var(--fp-green-500), var(--fp-green-700));
    color: #fff !important;
    border: 0;
    margin: 14px 0 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
    box-shadow: 0 8px 24px -8px rgba(245,158,11,0.55);
}
.button::after, .fp-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.button:hover:not(:disabled), .fp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(245,158,11,0.7);
    filter: brightness(1.06);
}
.button:hover::after, .fp-btn-primary:hover::after { transform: translateX(100%); }
.button:disabled {
    background: linear-gradient(135deg, #1f3b30, #123027);
    color: rgba(255,255,255,0.55) !important;
    box-shadow: none;
    cursor: not-allowed;
}

/* Links / helper text */
.accounts .text-primary,
.accounts a { color: var(--fp-green-400) !important; }
.accounts p a { color: var(--fp-green-400); font-weight: 600; text-decoration: none; }
.accounts p a:hover { color: var(--fp-green-300); text-decoration: underline; }

.accounts p.text-danger { color: var(--fp-danger) !important; font-size: 0.82rem; margin-top: 4px; }

/* Alerts */
.accounts .alert {
    border-radius: 12px;
    border: 1px solid;
    padding: 11px 14px;
    font-size: 0.88rem;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.accounts .alert-success {
    background: rgba(245,158,11,0.12) !important;
    border-color: rgba(245,158,11,0.4) !important;
    color: var(--fp-green-200) !important;
}
.accounts .alert-danger {
    background: rgba(239,68,68,0.12) !important;
    border-color: rgba(239,68,68,0.4) !important;
    color: #fecaca !important;
}

/* Password eye */
.password-wrapper { position: relative; display: block; }
.password-wrapper input { padding-right: 45px !important; }
.eye-icon {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--fp-green-400);
    cursor: pointer;
    padding: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    z-index: 10;
}
.eye-icon:hover { color: var(--fp-green-300); background: rgba(245,158,11,0.1); }

/* Legacy support: keep centered-form layout working when brand panel isn't in markup */
.accounts .row.justify-content-center > section.col-md-6:not(.fp-brand-panel):not(.fp-form-panel) {
    background: rgba(13, 26, 21, 0.72);
    border: 1px solid var(--fp-line);
    border-radius: 20px;
    padding: 36px 30px;
    margin: 5vh auto;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
}

/*--------------------------------------------------------------------------
    Responsive
--------------------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .accounts .fp-brand-panel {
        display: none;
    }
    .accounts .fp-form-panel {
        padding: 40px 16px 40px;
        min-height: auto;
        align-items: flex-start;
    }
    .accounts .fp-form-card {
        padding: 28px 22px;
    }
    .accounts .fp-form-card .fp-mobile-logo { display: block; }
}

@media (max-width: 575.98px) {
    .accounts .fp-form-card h1 { font-size: 1.35rem !important; }
    .accounts .form-control { height: 54px; }
    .accounts .form-floating { margin-bottom: 16px; }
    .accounts .fp-form-panel { padding: 28px 14px; }
}
