:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #14213d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fbff 0%, #edf3fa 100%);
}

.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

.card {
    width: min(100%, 470px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(16, 44, 82, .13);
    padding: 34px;
    border: 1px solid #e8eef5;
}

.logo {
    display: block;
    width: min(250px, 78%);
    height: auto;
    margin: 0 auto 22px;
}

h1 {
    margin: 0;
    text-align: center;
    font-size: 1.55rem;
}

.intro, .security-note {
    text-align: center;
    color: #5a677a;
    line-height: 1.5;
}

.intro { margin: 10px 0 26px; }
.security-note { margin: 24px 0 0; font-size: .84rem; }

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

input[type="text"] {
    width: 100%;
    border: 1px solid #cfd9e6;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 1rem;
    outline: none;
}

input[type="text"]:focus {
    border-color: #1f65c2;
    box-shadow: 0 0 0 3px rgba(31, 101, 194, .12);
}

.remember-check {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-weight: 400;
    color: #46556c;
    margin: 15px 0 18px;
    font-size: .92rem;
}

.remember-check input { margin-top: 2px; }

.button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 13px 16px;
    background: #164f9c;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.button:hover, .button:focus { background: #113f7d; }
.button.secondary { background: #26384f; }
.button.secondary:hover, .button.secondary:focus { background: #172639; }

.alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    background: #fff4e5;
    color: #7a4c00;
    border: 1px solid #f2d4a6;
    line-height: 1.4;
}

.remember-form {
    background: #f5f8fc;
    border: 1px solid #dce6f1;
    border-radius: 12px;
    padding: 16px;
}

.remember-label { margin: 0; color: #657286; font-size: .84rem; }
.remember-name { margin: 5px 0 13px; font-weight: 700; font-size: 1.05rem; }

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7b8798;
    font-size: .78rem;
    margin: 20px 0;
}
.divider::before, .divider::after {
    content: "";
    height: 1px;
    background: #e1e7ef;
    flex: 1;
}

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 520px) {
    .card { padding: 26px 20px; }
}
