*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url("../../img/cat-ilustration.png") center center / cover no-repeat fixed;
    color: #222;
}

/* ── CARD ───────────────────────────────────────────────────── */
.login-card {
    width: 100%;
    max-width: 380px;
    background: #f0f4f8;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.login-head {
    background: linear-gradient(to bottom, #2a3c4a 0%, #1e2e3c 100%);
    padding: 28px 24px 22px;
    text-align: center;
    color: #c0d0dc;
}

.login-head img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.login-head h1 {
    font-size: 18px;
    font-weight: bold;
    color: #e8f0f8;
    letter-spacing: 0.3px;
}

.login-head small {
    font-size: 11px;
    color: #8aaabb;
    display: block;
    margin-top: 3px;
}

/* ── BODY ───────────────────────────────────────────────────── */
.login-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #4a6070;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #b0c0cc;
    border-radius: 3px;
    background: #fff;
    color: #222;
    outline: none;
    transition: border-color 0.15s;
}

.form-control:focus {
    border-color: #4a8aaa;
    box-shadow: 0 0 0 2px rgba(74, 138, 170, 0.18);
}

.form-control.error {
    border-color: #c04040;
}

/* ── INPUT ICON WRAPPER ─────────────────────────────────────── */
.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #8aaabb;
    font-size: 12px;
    pointer-events: none;
}

.input-wrap .form-control {
    padding-left: 30px;
}

/* ── REMEMBER + FORGOT ──────────────────────────────────────── */
.login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 11px;
    color: #5a7080;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    accent-color: #2a5c7a;
    width: 13px;
    height: 13px;
}

/* ── ALERT ERROR ────────────────────────────────────────────── */
.alert-error {
    background: #fdecea;
    border: 1px solid #e8b0b0;
    border-left: 4px solid #c04040;
    border-radius: 3px;
    padding: 9px 12px;
    margin-bottom: 16px;
    color: #8a2020;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── SUBMIT BUTTON ──────────────────────────────────────────── */
.btn-login {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to bottom, #2a5c7a, #1e4a62);
    color: #e8f0f8;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: opacity 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.btn-login:hover {
    opacity: 0.92;
    box-shadow: 0 3px 10px rgba(0,0,0,0.32);
}

.btn-login:active {
    opacity: 0.85;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.login-foot {
    border-top: 1px solid #d0dce6;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #8aaabb;
}

.login-foot a {
    color: #4a8aaa;
    text-decoration: none;
}

.login-foot a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 420px) {
    body {
        align-items: flex-start;
        padding: 24px 12px;
    }

    .login-card {
        max-width: 100%;
    }
}
