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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f3f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.logo-block {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: #5a6dd0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.logo-name {
    font-size: 22px;
    font-weight: 800;
    color: #2a2f3d;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 13px;
    color: #aab0c0;
    margin-top: 4px;
}

.card {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    padding: 32px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2a2f3d;
    margin-bottom: 6px;
}

.card-sub {
    font-size: 13px;
    color: #aab0c0;
    margin-bottom: 24px;
}

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

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5a6070;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e6e8ee;
    border-radius: 8px;
    font-size: 14px;
    color: #2a2f3d;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}

input:focus {
    border-color: #5a6dd0;
    box-shadow: 0 0 0 3px rgba(90, 109, 208, 0.1);
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.remember-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5a6070;
    cursor: pointer;
    margin-bottom: 0;
}

.forgot-link {
    font-size: 13px;
    color: #5a6dd0;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 11px;
    background: #5a6dd0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
    font-family: inherit;
}

.btn-login:hover {
    opacity: 0.88;
}

.alert-error {
    background: #fdeaea;
    color: #c0392b;
    border: 1px solid #f5b7b1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #aab0c0;
}

.register-link a {
    color: #5a6dd0;
    text-decoration: none;
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — LOGIN
   ═══════════════════════════════════════════ */

@media (max-width: 480px) {
    .login-wrap { padding: 14px; }
    .card { padding: 22px 18px; }
    .logo-icon { width: 44px; height: 44px; font-size: 18px; }
    .logo-name { font-size: 18px; }
    .card-title { font-size: 16px; }
}

@media (max-width: 360px) {
    .card { padding: 18px 14px; }
    .btn-login { font-size: 13px; }
}
