/* Styles for resources/views/auth/login.blade.php */
:root {
        --gold:       #C9A84C;
        --gold-lt:    #E2C06A;
        --gold-dim:   rgba(201,168,76,0.14);
        --teal-dark:  #071E27;

        /* Dark mode (default) — the credential area's original navy-glass look */
        --fc-card-bg:      rgba(10, 22, 28, 0.97);
        --fc-card-border:  rgba(201,168,76,0.2);
        --fc-field-bg:     #0F2530;
        --fc-field-border: rgba(255,255,255,0.06);
        --fc-muted:        rgba(255,255,255,0.38);
        --fc-text:         #fff;
        --fc-text-soft:    rgba(255,255,255,0.85);
        --fc-icon:         rgba(255,255,255,0.2);
        --fc-placeholder:  rgba(255,255,255,0.16);
        --fc-hair:         rgba(255,255,255,0.08);
        --fc-link:         var(--gold-lt);
        --fc-link-alpha:   0.78;
        --fc-error:        #ff6e6e;
        --fc-card-shadow:  0 0 0 1px rgba(201,168,76,0.04), 0 30px 70px rgba(0,0,0,0.7), inset 0 1px 0 rgba(201,168,76,0.14);
        --fc-card-shadow-hover: 0 0 0 1px rgba(201,168,76,0.08), 0 36px 80px rgba(0,0,0,0.75), inset 0 1px 0 rgba(201,168,76,0.2);
    }

    /* Light mode — clean white credential area per the app's light theme */
    html.light {
        --fc-card-bg:      #ffffff;
        --fc-card-border:  rgba(15,23,42,0.08);
        --fc-field-bg:     #f8fafc;
        --fc-field-border: #e2e8f0;
        --fc-muted:        #64748b;
        --fc-text:         #0f172a;
        --fc-text-soft:    #334155;
        --fc-icon:         #94a3b8;
        --fc-placeholder:  #a3adbd;
        --fc-hair:         #e7ebf1;
        --fc-link:         #8a5a12;
        --fc-link-alpha:   1;
        --fc-error:        #d1332a;
        --fc-card-shadow:  0 1px 2px rgba(15,23,42,0.04), 0 24px 48px rgba(15,23,42,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
        --fc-card-shadow-hover: 0 1px 2px rgba(15,23,42,0.05), 0 30px 60px rgba(15,23,42,0.16), inset 0 1px 0 rgba(255,255,255,0.7);
    }

    /* Brand row above card */
    .fc-brandrow {
        display: flex; align-items: center; gap: 10px;
        margin-bottom: 1.4rem;
        animation: fUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
    }
    .fc-brand-mark {
        width: 30px; height: 30px; flex: none;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--gold-lt), var(--gold));
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 14px rgba(201,168,76,0.3);
    }
    .fc-brand-mark svg { color: #071E27; }
    .fc-brand-word {
        font-family: 'Playfair Display', serif;
        font-size: 1.05rem; font-weight: 700;
        color: var(--fc-text-soft); letter-spacing: -0.01em;
        transition: color .3s ease;
    }
    .fc-brand-word b { color: var(--gold); }

    /* Card */
    .fdms-card {
        width: 100%;
        max-width: 400px;
        margin: 0 2rem;
        background: var(--fc-card-bg);
        border: 1px solid var(--fc-card-border);
        border-radius: 22px;
        padding: 2.8rem 2.4rem;
        box-shadow: var(--fc-card-shadow);
        animation: cardIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
        backdrop-filter: blur(20px);
        position: relative;
        z-index: 1;
        will-change: transform;
        transition: box-shadow .35s ease, background .35s ease, border-color .35s ease;
    }
    .fdms-card:hover {
        box-shadow: var(--fc-card-shadow-hover);
    }

    /* Top gold shimmer bar */
    .fdms-card::before {
        content: '';
        position: absolute; top:0; left:50%;
        transform: translateX(-50%);
        width: 50%; height: 2px;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
        border-radius: 0 0 2px 2px;
    }

    /* Cursor-follow spotlight glow inside the card */
    .fdms-card::after {
        content: '';
        position: absolute; inset: 0;
        border-radius: 22px;
        background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 0%), rgba(201,168,76,0.14), transparent 60%);
        opacity: 0;
        transition: opacity .4s ease;
        pointer-events: none;
        z-index: -1;
    }
    .fdms-card:hover::after { opacity: 1; }

    @keyframes cardIn {
        from { opacity:0; translate: 24px 0; scale: 0.98; }
        to   { opacity:1; translate: 0 0;    scale: 1; }
    }

    /* Header */
    .fc-head {
        text-align: center;
        margin-bottom: 1.9rem;
        animation: fUp 0.6s 0.15s both;
    }

    .fc-avatar {
        width: 58px; height: 58px;
        background: var(--gold-dim);
        border: 1px solid var(--fc-card-border);
        border-radius: 14px;
        display: inline-flex; align-items: center; justify-content: center;
        margin-bottom: 1.1rem;
        color: var(--gold);
        position: relative;
        transition: transform .3s cubic-bezier(0.22,1,0.36,1), box-shadow .3s ease;
    }
    .fc-avatar::after {
        content: '';
        position: absolute; inset: -1px; border-radius: 14px;
        background: linear-gradient(135deg, rgba(201,168,76,0.3), transparent 55%);
        pointer-events: none;
    }
    .fc-head:hover .fc-avatar {
        transform: rotate(-6deg) scale(1.06);
        box-shadow: 0 10px 24px rgba(201,168,76,0.25);
    }

    .fc-title {
        font-family: 'Playfair Display', serif;
        font-size: 1.65rem; font-weight: 700;
        color: var(--fc-text); letter-spacing: -0.02em; margin: 0;
        transition: color .3s ease;
    }
    .fc-title em { color: var(--gold); font-style: normal; }

    .fc-sub {
        font-size: 0.76rem; font-weight: 300;
        color: var(--fc-muted); margin-top: 0.28rem;
        font-family: 'Outfit', sans-serif;
    }

    /* Divider */
    .fc-div {
        display: flex; align-items: center; gap: 10px;
        margin-bottom: 1.7rem;
    }
    .fc-div::before { content:''; flex:1; height:1px; background:linear-gradient(90deg,transparent,var(--fc-card-border)); }
    .fc-div::after  { content:''; flex:1; height:1px; background:linear-gradient(90deg,var(--fc-card-border),transparent); }
    .fc-dot { width:5px; height:5px; background:var(--gold); border-radius:50%; opacity:.5; }

    /* Fields */
    .fc-field {
        margin-bottom: 1.05rem;
        animation: fUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
    }
    .fc-field:nth-child(1) { animation-delay:.2s; }
    .fc-field:nth-child(2) { animation-delay:.28s; }

    .fc-label {
        display: block;
        font-family: 'Outfit', sans-serif;
        font-size: 0.68rem; font-weight: 500;
        color: var(--fc-muted);
        letter-spacing: 0.1em; text-transform: uppercase;
        margin-bottom: 0.4rem;
    }

    .fc-wrap { position: relative; }

    .fc-ico {
        position: absolute; left:13px; top:50%;
        transform: translateY(-50%);
        color: var(--fc-icon);
        pointer-events: none;
        transition: color 0.2s, transform 0.2s;
    }

    .fc-input {
        width: 100%;
        background: var(--fc-field-bg);
        border: 1px solid var(--fc-field-border);
        border-radius: 10px;
        color: var(--fc-text);
        font-family: 'Outfit', sans-serif;
        font-size: 0.875rem;
        padding: 0.76rem 1rem 0.76rem 2.5rem;
        outline: none;
        transition: border-color .22s, box-shadow .22s, background .22s, translate .22s, color .3s ease;
        display: block;
    }
    .fc-input::placeholder { color: var(--fc-placeholder); }
    .fc-input:hover { border-color: rgba(201,168,76,0.35); }
    .fc-input:focus {
        border-color: var(--gold);
        background: rgba(201,168,76,0.05);
        box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
        translate: 0 -1px;
    }
    .fc-wrap:focus-within .fc-ico { color: var(--gold); transform: translateY(-50%) scale(1.08); }

    .fc-eye {
        position: absolute; right:11px; top:50%;
        transform: translateY(-50%);
        background: none; border: none; cursor: pointer;
        color: var(--fc-icon);
        padding: 4px; display:flex; align-items:center;
        transition: color 0.2s, translate 0.2s; line-height:1;
    }
    .fc-eye:hover { color: var(--gold); translate: 0 -1px; }

    .fc-forgot {
        display: block; text-align: right;
        font-family: 'Outfit', sans-serif;
        font-size: 0.73rem; color: var(--fc-link);
        text-decoration: none; margin-top: 0.32rem;
        opacity: var(--fc-link-alpha); transition: opacity 0.2s, translate 0.2s, color .3s ease;
    }
    .fc-forgot:hover {
        opacity: 1;
        color: var(--fc-text) !important;
        translate: 2px 0;
    }

    .fc-error {
        display: none; font-size: 0.7rem; color: var(--fc-error);
        margin-top: 0.3rem; align-items: center; gap: 5px;
        font-family: 'Outfit', sans-serif;
        transition: color .3s ease;
    }

    /* Button */
    .fc-btn {
        width: 100%; margin-top: 1.5rem;
        padding: 0.84rem;
        background: linear-gradient(135deg, var(--gold-lt) 0%, var(--gold) 55%, #9B7020 100%);
        color: #071E27;
        font-family: 'Outfit', sans-serif; font-weight: 700;
        font-size: 0.83rem; letter-spacing: 0.12em; text-transform: uppercase;
        border: none; border-radius: 10px; cursor: pointer;
        position: relative; overflow: hidden;
        transition: transform .18s, box-shadow .18s, opacity .18s;
        box-shadow: 0 4px 22px rgba(201,168,76,0.35);
        animation: fUp 0.6s 0.36s both;
        display: flex; align-items: center; justify-content: center;
    }
    .fc-btn::after {
        content: '';
        position: absolute; top:0; left:-120%;
        width: 55%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transform: skewX(-18deg);
        transition: left .5s ease;
    }
    .fc-btn:hover::after { left:160%; }
    .fc-btn:hover { transform:translateY(-2px); box-shadow: 0 10px 28px rgba(201,168,76,0.45); }
    .fc-btn:active { transform:translateY(0) scale(0.98); }
    .fc-btn.is-loading { pointer-events: none; opacity: 0.88; }
    .fc-btn.is-loading .fc-btn-text { visibility: hidden; }
    .fc-btn-spinner {
        display: none;
        position: absolute;
        width: 16px; height: 16px;
        border: 2px solid rgba(7,30,39,0.28);
        border-top-color: #071E27;
        border-radius: 50%;
        animation: fcSpin 0.7s linear infinite;
    }
    .fc-btn.is-loading .fc-btn-spinner { display: inline-block; }
    @keyframes fcSpin { to { rotate: 360deg; } }

    /* Footer */
    .fc-foot {
        text-align: center; margin-top: 1.35rem;
        font-size: 0.7rem; color: var(--fc-muted);
        display: flex; align-items: center; justify-content: center; gap: 8px;
        font-family: 'Outfit', sans-serif;
        animation: fUp 0.6s 0.42s both;
    }
    .fc-foot::before, .fc-foot::after {
        content:''; width:26px; height:1px;
        background: var(--fc-hair);
    }

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

    @media (max-width: 480px) {
        .fdms-card { margin: 0 1rem; padding: 2.2rem 1.5rem; max-width: 100%; }
        .fc-brandrow { margin-bottom: 1.1rem; }
    }
