:root {
    --brand:     #F7941D;
    --brand-rgb: 247, 148, 29;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e2e8f0; background: #000;
}

.login-wrapper {
    position: relative; width: 100%; height: 100vh;
    display: flex; align-items: center; justify-content: center;
}

.login-image {
    position: absolute; inset: 0; z-index: 0;
}
.login-image img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: 5% center;
}
.login-image::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(var(--brand-rgb), 0.06) 0%, transparent 60%),
        linear-gradient(160deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.42) 50%, rgba(0,0,0,0.67) 100%);
}

.login-side {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
}
.login-card {
    width: 460px;
    max-width: calc(100vw - 32px);
    background: rgba(10, 15, 28, 0.6);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 44px 42px 38px;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06);
    animation: cardIn 0.6s ease-out;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-brand {
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 28px;
}
.login-hm-logo {
    width: 86px; height: 86px; margin-bottom: 18px;
    filter: drop-shadow(0 0 12px rgba(var(--brand-rgb), 0.25));
}
.login-brand h1 {
    font-size: 1.6rem; font-weight: 700; color: #fff;
    margin-bottom: 8px; letter-spacing: 0.02em;
}
.login-brand p {
    font-size: 0.92rem; color: rgba(255,255,255,0.55);
}

.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 500; line-height: 1.4;
    margin-bottom: 20px;
}
.alert wa-icon { flex-shrink: 0; font-size: 0.95rem; }
.alert-error {
    background: rgba(220,38,38,0.15); color: #fca5a5;
    border: 1px solid rgba(220,38,38,0.25);
}
.alert-success {
    background: rgba(22,163,74,0.15); color: #86efac;
    border: 1px solid rgba(22,163,74,0.25);
}

.field { margin-bottom: 20px; }
.field label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: rgba(255,255,255,0.6); margin-bottom: 8px;
}
.field input {
    width: 100%; height: 50px; padding: 0 16px;
    font-size: 1rem; font-family: inherit; color: #fff;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12); border-radius: 10px;
    outline: none; transition: all 0.25s;
}
.field input::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

.captcha {
    margin-bottom: 20px;
    display: flex; justify-content: center;
}

.btn {
    width: 100%; height: 50px; font-size: 1rem; font-weight: 600;
    font-family: inherit; color: #fff;
    background: var(--brand);
    border: none; border-radius: 10px; cursor: pointer;
    transition: all 0.25s;
}
.btn:hover {
    background: #ffa733;
    box-shadow: 0 6px 28px rgba(var(--brand-rgb), 0.35);
    transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.back-link {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 22px;
    font-size: 0.92rem; color: rgba(255,255,255,0.45); text-decoration: none;
    font-weight: 500; transition: color 0.15s;
}
.back-link:hover { color: var(--brand); }
.back-link wa-icon { font-size: 0.85rem; }

.copy {
    margin-top: 24px; font-size: 0.82rem;
    color: rgba(255,255,255,0.4); text-align: center;
}

@media (max-width: 640px) {
    .login-card { margin: 16px; padding: 24px 20px 20px; border-radius: 16px; }

    .login-brand { margin-bottom: 18px; }
    .login-hm-logo { width: 56px; height: 56px; margin-bottom: 10px; }
    .login-brand h1 { font-size: 1.35rem; margin-bottom: 6px; }
    .login-brand p { font-size: 0.85rem; }

    .alert { padding: 10px 14px; margin-bottom: 14px; }
    .field { margin-bottom: 14px; }
    .field input { height: 44px; }
    .captcha { margin-bottom: 14px; }
    .options { margin-bottom: 16px; }
    .btn { height: 44px; }
    .back-link { margin-top: 16px; }
    .copy { margin-top: 16px; }
}

.auth-login .lang-bar {
    display: flex; justify-content: center; gap: 2px;
    background: rgba(255,255,255,0.07); border-radius: 6px; padding: 2px;
    margin-bottom: 24px; width: fit-content; margin-left: auto; margin-right: auto;
}
.auth-login .lang-bar a {
    padding: 5px 16px; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    text-decoration: none; border-radius: 5px;
    color: rgba(255,255,255,0.45); transition: all 0.15s;
}
.auth-login .lang-bar a:hover { color: rgba(255,255,255,0.7); }
.auth-login .lang-bar a.active {
    background: rgba(var(--brand-rgb), 0.15); color: var(--brand);
}

.auth-login .options {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.auth-login .options label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.88rem; color: rgba(255,255,255,0.5); cursor: pointer;
}
.auth-login .options input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer;
}
.auth-login .options a {
    font-size: 0.88rem; color: var(--brand); text-decoration: none;
    font-weight: 500; transition: color 0.15s;
}
.auth-login .options a:hover { color: #fbbf24; text-decoration: underline; }

.auth-password-request .login-brand h1 { margin-bottom: 12px; }
.auth-password-request .login-brand p {
    line-height: 1.6; text-align: center; max-width: 340px;
}

.auth-password-reset .login-brand h1 { margin-bottom: 0; }
