    :root {
    --bg:       #1b1f26;
    --bg-2:     #232833;
    --card:     #2b313d;
    --card-2:   #323949;
    --text:     #eef2f7;
    --sub:      #aab3c1;
    --dim:      #7f8998;
    --accent:   #CF5C36;
    --ready:    #46c978;
    --trig:     #df6666;

    --sh-dark:  4px 4px 10px rgba(7,10,16,0.48);
    --sh-light: -2px -2px 6px rgba(255,255,255,0.028);

    --in-dark:  inset 2px 2px 5px rgba(8,11,17,0.42);
    --in-light: inset -1px -1px 3px rgba(255,255,255,0.02);

    --border-soft: rgba(255,255,255,0.05);
    --border-accent: rgba(207,92,54,0.45);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, #2a3040 0%, #1b1f26 70%);
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px 20px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.brand,
.login-card,
.footer-note {
    position: relative;
    z-index: 1;
}

.brand {
    text-align: center;
    margin-bottom: 24px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, #da6a45, #b8461e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow:
        0 6px 16px rgba(207,92,54,0.28),
        var(--sh-dark);
}

.brand-logo i {
    font-size: 22px;
    color: #fff;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-name em {
    color: var(--accent);
    font-style: normal;
}

.brand-sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 6px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(145deg, var(--card-2), var(--card));
    border-radius: 18px;
    padding: 26px 22px 22px;
    box-shadow:
        var(--sh-dark),
        var(--sh-light),
        0 0 0 1px rgba(255,255,255,0.03);
    backdrop-filter: blur(2px);
}

.flash-error {
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(223,102,102,0.12);
    color: #ffb7b7;
    border: 1px solid rgba(223,102,102,0.22);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.4;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.flash-error i {
    font-size: 14px;
    flex-shrink: 0;
}

.fg {
    margin-bottom: 15px;
}

.fg label {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.input-wrap i.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--dim);
    pointer-events: none;
    transition: color 0.15s ease;
}

.fg input[type="email"],
.fg input[type="password"] {
    width: 100%;
    padding: 13px 14px 13px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(0,0,0,0.22);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    box-shadow: var(--in-dark), var(--in-light);
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.fg input::placeholder {
    color: var(--dim);
    font-weight: 500;
}

.fg input:hover {
    background: rgba(0,0,0,0.26);
}

.fg input:focus {
    border-color: var(--border-accent);
    background: rgba(0,0,0,0.3);
    box-shadow:
        inset 2px 2px 5px rgba(0,0,0,0.48),
        inset -1px -1px 3px rgba(255,255,255,0.02),
        0 0 0 1px rgba(207,92,54,0.32);
}

.fg input:focus + .pw-toggle,
.fg input:focus ~ .pw-toggle {
    color: var(--sub);
}

.input-wrap:focus-within .field-icon {
    color: #c98a74;
}

.pw-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dim);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    transition: color 0.15s ease, transform 0.12s ease;
}

.pw-toggle:hover {
    color: var(--sub);
}

.pw-toggle:active {
    transform: translateY(-50%) scale(0.96);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    cursor: pointer;
    user-select: none;
}

.remember-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
    box-shadow:
        inset 2px 2px 4px rgba(0,0,0,0.45),
        inset -1px -1px 2px rgba(255,255,255,0.02);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.12s ease;
}

.remember-row input[type="checkbox"]:hover {
    border-color: rgba(255,255,255,0.08);
}

.remember-row input[type="checkbox"]:active {
    transform: scale(0.96);
}

.remember-row input[type="checkbox"]:checked {
    background: linear-gradient(180deg, #d96b47 0%, #c14d28 100%);
    border-color: rgba(207,92,54,0.5);
    box-shadow:
        0 3px 8px rgba(207,92,54,0.28),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.remember-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.5px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.remember-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--sub);
    line-height: 1.1;
}

.remember-label small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--dim);
    margin-top: 4px;
    line-height: 1.35;
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #da6a45 0%, #c04f28 100%);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow:
        0 4px 12px rgba(207,92,54,0.34),
        0 2px 4px rgba(0,0,0,0.28);
    transition:
        transform 0.12s ease,
        opacity 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

.btn-login:hover {
    filter: brightness(1.03);
    box-shadow:
        0 6px 14px rgba(207,92,54,0.36),
        0 2px 5px rgba(0,0,0,0.3);
}

.btn-login:active {
    opacity: 0.96;
    transform: translateY(1px) scale(0.99);
    box-shadow:
        inset 2px 2px 6px rgba(0,0,0,0.28),
        0 2px 5px rgba(0,0,0,0.22);
}

.btn-login.loading {
    opacity: 0.72;
    pointer-events: none;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
    color: var(--dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.footer-note {
    text-align: center;
    margin-top: 18px;
    font-size: 11px;
    color: var(--dim);
    line-height: 1.6;
}

.footer-note a {
    color: var(--dim);
    text-decoration: none;
}

.footer-note a:hover {
    color: var(--sub);
}

@media (max-width: 480px) {
    body {
        padding: 18px 14px;
    }

    .login-card {
        padding: 22px 18px 18px;
        border-radius: 16px;
    }

    .brand {
        margin-bottom: 20px;
    }
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 999px #2b3039 inset !important;
    -webkit-text-fill-color: var(--text, #eef2f7) !important;
    caret-color: #eef2f7;
    transition: background-color 9999s ease-in-out 0s;
}