:root {
    --login-accent: #2DD4BF;
    color-scheme: light;
    font-family: 'Manrope', sans-serif;
    color: #0e0e11;
    background: #f7f7f7;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #0e0e11; outline-offset: 4px; }

.login-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.login-topbar, .login-layout, .login-footer { width: min(1280px, 100%); margin-inline: auto; }
.login-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 48px; }
.login-brand { display: inline-flex; flex-shrink: 0; }
.login-brand img { width: 164px; height: auto; display: block; filter: brightness(0); }
.login-back { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #52525b; font-size: 12px; font-weight: 600; min-height: 44px; }
.login-back svg { width: 16px; height: 16px; }
.login-back:hover { color: #0e0e11; }

.login-layout { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); padding: 28px 48px 40px; }
.login-intro { padding-block: 32px; }
.login-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: .16em; margin: 0 0 28px; color: #52525b; }
.login-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: var(--login-accent); }
.login-intro h1 { margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(44px, 5.1vw, 70px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.login-intro h1 span { color: inherit; }
.login-description { max-width: 375px; margin: 28px 0 30px; color: #52525b; font-size: 14px; line-height: 1.85; }
.login-features { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.login-features li { display: flex; align-items: center; gap: 8px; background: #eeeef0; border-radius: 8px; padding: 11px 14px; font-size: 11px; font-weight: 600; }
.login-features svg { width: 16px; height: 16px; }
.login-signature { margin: 72px 0 0; font-size: 9px; font-weight: 700; letter-spacing: .16em; color: #71717a; }

.login-panel { min-width: 0; background: #fff; border-radius: 20px; padding: 44px clamp(28px, 3.8vw, 52px); box-shadow: 0 8px 40px rgb(14 14 17 / 2%); }
.login-form-wrap { max-width: 360px; margin-inline: auto; }
.login-panel-icon { display: grid; place-items: center; width: 44px; height: 44px; background: #f7f7f7; border-radius: 12px; margin-bottom: 28px; }
.login-panel .login-eyebrow { font-size: 9px; margin-bottom: 12px; }
.login-panel h2 { margin: 0 0 12px; font-size: clamp(25px, 2.4vw, 32px); font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
.login-form-description { margin: 0; color: #71717a; font-size: 12px; line-height: 1.7; }
.login-form { margin-top: 32px; }
.login-field + .login-field { margin-top: 20px; }
.login-field > label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 9px; }
.login-input-wrap { position: relative; }
.login-input-wrap > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #71717a; pointer-events: none; }
.login-input-wrap > input { display: block; width: 100%; height: 44px; border: 0; border-radius: 8px; background: #f7f7f7; color: #0e0e11; padding: 10px 14px 10px 40px; font-size: 13px; transition: background-color .15s; }
.login-input-wrap > input:focus { background: #f7f7f7; outline: none; box-shadow: none; }
.login-input-wrap:focus-within > svg { color: #0e0e11; }
.login-input-wrap > input:is(:autofill, :-webkit-autofill) {
    background-color: #f7f7f7 !important;
    -webkit-box-shadow: 0 0 0 1000px #f7f7f7 inset !important;
    box-shadow: 0 0 0 1000px #f7f7f7 inset !important;
    -webkit-text-fill-color: #0e0e11 !important;
    color: #0e0e11 !important;
    caret-color: #0e0e11;
}
.login-input-wrap > #password { padding-right: 48px; }
.login-input-wrap > input::-ms-reveal { display: none; }
.login-password-toggle { position: absolute; right: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #71717a; cursor: pointer; }
.login-password-toggle:hover { background: #e8e8eb; color: #0e0e11; }
.login-password-toggle svg { width: 18px; height: 18px; }
.login-eye-slash { display: none; }
.login-password-toggle[aria-pressed="true"] .login-eye-slash { display: block; }
.login-remember { display: flex; align-items: center; gap: 9px; width: fit-content; min-height: 44px; margin-block: 12px; font-size: 12px; color: #52525b; cursor: pointer; }
.login-remember input { width: 16px; height: 16px; margin: 0; accent-color: #0e0e11; cursor: pointer; }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 15px 20px; border: 0; border-radius: 9px; background: #0e0e11; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.login-submit:hover { background: #303035; }
.login-submit:active { background: #18181b; }
.login-submit svg { width: 18px; height: 18px; color: inherit; }
.login-error { margin: 16px 0 0; border-radius: 8px; padding: 12px; background: #fff1f2; color: #a1122c; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.login-feedback { margin: 16px 0 0; color: #52525b; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.login-help { margin: 28px 0 0; text-align: center; font-size: 11px; line-height: 1.9; color: #71717a; }
.login-help a { display: inline-block; padding-block: 5px; color: #0e0e11; font-weight: 700; text-decoration: none; }
.login-help a:hover { color: #52525b; text-decoration: none; }
.login-footer { display: flex; justify-content: space-between; gap: 16px; padding: 22px 48px 28px; color: #71717a; font-size: 10px; }

@media (max-width: 900px) {
    .login-topbar { padding: 24px 32px; }
    .login-layout { padding-inline: 32px; gap: 32px; grid-template-columns: 1fr 1fr; }
    .login-intro h1 { font-size: 46px; }
    .login-panel { padding: 32px 24px; }
    .login-footer { padding-inline: 32px; }
}

@media (max-width: 700px) {
    .login-topbar { padding: 20px 24px; }
    .login-brand img { width: 140px; }
    .login-back { font-size: 11px; gap: 5px; }
    .login-back svg { width: 14px; }
    .login-layout { display: block; max-width: 480px; padding: 16px 20px 24px; }
    .login-intro { display: none; }
    .login-panel { padding: 32px 24px; border-radius: 16px; }
    .login-panel h2 { font-size: 29px; }
    .login-panel-icon { margin-bottom: 24px; }
    .login-input-wrap > input { font-size: 16px; }
    .login-field > label, .login-remember, .login-submit { font-size: 13px; }
    .login-form-description, .login-help { font-size: 12px; }
    .login-footer { padding: 16px 24px 24px; flex-wrap: wrap; justify-content: center; text-align: center; gap: 8px 20px; }
}

@media (max-width: 360px) {
    .login-topbar { padding-inline: 16px; gap: 12px; }
    .login-brand img { width: 120px; }
    .login-layout { padding-inline: 12px; }
    .login-panel { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
