/* ─── FONTS ─────────────────────────────────────────── */
@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/poppins-v20-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/poppins-v20-latin-600.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/poppins-v20-latin-700.woff2') format('woff2');
}

/* ─── BASE ───────────────────────────────────────────── */
body {
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
}

/* ─── LAYOUT ─────────────────────────────────────────── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.login-panel {
    width: 100%;
    max-width: 520px;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 40px 48px;
    position: relative;
    z-index: 1;
}

.login-image {
    flex: 1;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ─── BRAND ──────────────────────────────────────────── */
.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0c2340;
    font-weight: 700;
    font-size: 1.2rem;
}

.login-brand img {
    width: 28px;
    height: 28px;
}

.login-brand:hover {
    color: #0c2340;
}

/* ─── FORM CONTAINER ─────────────────────────────────── */
.login-form-container {
    width: 100%;
    max-width: 360px;
    margin: auto;
    padding: 48px 0;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0c2340;
    margin-bottom: 4px;
}

.login-sub {
    color: #5a6a82;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* ─── FORM CONTROLS ──────────────────────────────────── */
.form-control {
    border-color: #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #1a6abf;
    box-shadow: 0 0 0 3px rgba(26, 106, 191, 0.12);
}

.form-floating label {
    color: #5a6a82;
    font-size: 0.9rem;
}

/* ─── BUTTON ─────────────────────────────────────────── */
.btn-dd {
    background-color: #1a6abf;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-dd:hover {
    background-color: #155aaa;
    color: #fff;
    transform: translateY(-1px);
}

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

/* ─── PASSWORD TOGGLE ───────────────────────────────── */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
    display: none;
}

.password-toggle:hover {
    color: #2a7fd4;
}

.password-field .form-control.is-invalid {
    padding-right: 68px;
    background-position: right 40px center;
}

/* ─── LINKS ──────────────────────────────────────────── */
.login-link {
    color: #1a6abf;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #155aaa;
}

.login-sub-small {
    font-size: 0.875rem;
    color: #5a6a82;
}

.login-remember {
    font-size: 0.9rem;
    color: #5a6a82;
}

.login-alert {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c0392b;
    margin-bottom: 12px;
    min-height: 0;
}

.login-divider {
    border-color: #f0f4f8;
    margin: 24px 0;
}

/* ─── STRENGTH BARS ──────────────────────────────────── */
.pu-bar {
    height: 4px;
    background: #e2e8f0;
    transition: background 0.2s ease;
}

.pu-strength-label {
    font-size: 0.75rem;
    min-height: 1rem;
    color: #a0aec0;
}

/* ─── REQUIREMENTS ───────────────────────────────────── */
.pu-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #5a6a82;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.pu-requirements li { display: flex; align-items: center; gap: 6px; }
.pu-requirements li:last-child { grid-column: 1 / -1; justify-self: center; }
.pu-requirements li.req-pass { color: #2f855a; }
.pu-requirements li.req-fail { color: #c53030; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
    .login-panel {
        max-width: 100%;
        padding: 32px 24px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(4px);
    }

    .login-image {
        position: fixed;
        inset: 0;
        z-index: 0;
    }

    .login-image img {
        filter: brightness(0.6);
    }
}
