* { box-sizing: border-box; }
body {
    margin: 0;
    background: #eef2f7;
    color: #212529;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-size: 16px;
    line-height: 1.5;
}
.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
    overflow: hidden;
    background: white;
}
.login-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
}
.login-header img {
    display: block;
    margin: 0 auto 15px;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    object-fit: contain;
}
.login-header h1 { font-size: 20px; line-height: 1.5; font-weight: 600; margin: 0; text-wrap: balance; }
.login-body { padding: 40px 30px; }
.form-group { margin-bottom: 16px; }
.password-group { margin-bottom: 24px; }
label { display: block; color: #6c757d; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.input-group { display: flex; width: 100%; height: 50px; border-radius: 8px; }
.input-group:focus-within { box-shadow: 0 0 0 4px rgb(13 110 253 / 25%); }
.input-group > * { border: 1px solid #ced4da; }
.input-group:focus-within > * { border-color: #86b7fe; }
.input-icon { padding: 0 12px; display: flex; align-items: center; background: #f8f9fa; color: #6c757d; border-radius: 8px 0 0 8px; }
.input-icon svg, .password-toggle svg, .btn-login svg { width: 18px; height: 18px; flex-shrink: 0; }
input { width: 100%; min-width: 0; border-left: 0 !important; border-radius: 0 8px 8px 0; background: white; padding: 12px; font-size: 16px; color: #212529; }
input::placeholder { color: #6c757d; font-size: 14px; }
input:focus { outline: none; }
#password { border-radius: 0; }
.password-toggle { min-width: 46px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-left: 0; background: #f8f9fa; color: #64748b; border-radius: 0 8px 8px 0; cursor: pointer; }
.password-toggle:hover { background: #eef4ff; color: #0d6efd; }
button:focus-visible, a:focus-visible { outline: 2px solid #0d6efd; outline-offset: 3px; }
.btn-login { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 12px; border: 1px solid #0d6efd; border-radius: 8px; background: #0d6efd; color: white; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 4px rgb(0 0 0 / 8%); }
.btn-login:hover { background: #0b5ed7; border-color: #0a58ca; }
.btn-login:disabled { opacity: .65; cursor: wait; }
.login-links { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; margin-top: 24px; font-size: 14px; }
.login-links a { color: #0d6efd; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.login-error { border: 1px solid #f5c2c7; border-radius: 8px; background: #f8d7da; color: #842029; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; overflow-wrap: anywhere; }
.social-divider { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 13px; margin: 22px 0 14px; }
.social-divider::before, .social-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.social-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.social-button { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 44px; padding: 8px 4px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; background: white; color: #475569; }
.social-google { color: #b91c1c; border-color: #fecaca; }
.social-google:hover { background: #fef2f2; }
.social-microsoft { color: #0369a1; border-color: #bae6fd; }
.social-microsoft:hover { background: #f0f9ff; }
.social-line { color: #15803d; border-color: #bbf7d0; }
.social-line:hover { background: #f0fdf4; }
.social-button:disabled { color: #94a3b8; border-color: #e2e8f0; background: #f8fafc; cursor: not-allowed; }
@media (max-width: 400px) {
    body { padding: 16px; }
    .login-body { padding: 28px 20px; }
}
