:root {
    color-scheme: light;
    --navy: #082448;
    --ink: #060d2d;
    --muted: #7287ad;
    --cyan: #59d7f5;
}
* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button[hidden] { display: none; }
.groomia-login {
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px;
    display: grid;
    place-items: center;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: radial-gradient(ellipse at 0 0, #90acca 0, transparent 33%), radial-gradient(ellipse at 100% 100%, #8cacd0 0, transparent 38%), #0b2d59;
    -webkit-font-smoothing: antialiased;
}
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.login-shell {
    width: 100%;
    max-width: 1620px;
    min-height: 740px;
    min-height: max(740px, calc(100svh - 48px));
    display: grid;
    grid-template-columns: 62.5% 37.5%;
    overflow: hidden;
    border: 1px solid rgba(160, 201, 248, .45);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 17, 45, .24);
}
.login-brand {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 42px 48px 54px;
    color: #fff;
    background: radial-gradient(ellipse at 100% 35%, #0c315f, transparent 65%), linear-gradient(115deg, #071e3c, #0a2a52);
    display: flex;
    flex-direction: column;
}
.brand-logo { display: block; width: clamp(220px, 17vw, 280px); height: auto; position: relative; z-index: 2; }
.brand-content { width: 65%; margin-top: clamp(108px, 14vh, 150px); position: relative; z-index: 2; }
.brand-content h1 { font-size: clamp(43px, 4.25vw, 72px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; white-space: nowrap; }
.brand-content h1 span { color: var(--cyan); }
.brand-subtitle { color: #adbeda; font-size: clamp(23px, 1.95vw, 32px); letter-spacing: -.025em; margin-top: 12px; }
.feature-grid { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 46px; }
.feature-card { display: flex; align-items: center; gap: 18px; min-height: 110px; padding: 18px; border: 1px solid #2a598a; border-radius: 17px; background: linear-gradient(120deg, rgba(24, 58, 100, .57), rgba(34, 78, 132, .28)); font-size: clamp(16px, 1.2vw, 20px); font-weight: 600; letter-spacing: -.035em; }
.feature-icon { width: 64px; height: 66px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #2b568b, #1d3a64); box-shadow: inset 0 1px 0 rgba(146, 202, 255, .16); flex-shrink: 0; }
.feature-icon .icon { width: 32px; height: 32px; }
.feature-chevron { width: 18px; height: 18px; color: #c0d8f2; margin-left: auto; }
.brand-dog { position: absolute; z-index: 1; bottom: -2px; right: -3%; width: 47%; height: auto; max-height: 65%; object-fit: contain; object-position: bottom right; pointer-events: none; }
.brand-footer { position: relative; z-index: 2; margin-top: auto; padding-top: 92px; font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: #d1dcef; line-height: 1.8; }
.brand-footer::before { content: ''; display: block; height: 1px; width: 30px; background: #b3d1ef; margin-bottom: 18px; }
.brand-footer span { margin: 0 12px; }
.brand-orb { position: absolute; z-index: -1; border-radius: 50%; background: rgba(33, 91, 175, .23); pointer-events: none; }
.brand-orb-top { width: 285px; height: 285px; top: -83px; right: -91px; }
.brand-orb-side { width: 300px; height: 300px; top: 31%; right: -140px; }
.brand-orb-bottom { width: 450px; height: 450px; bottom: -210px; right: 8%; }
.brand-paw { position: absolute; z-index: 0; width: 116px; height: 116px; fill: #164785; opacity: .6; top: 28%; right: 17%; transform: rotate(-12deg); }
.brand-sparks { position: absolute; top: 40%; right: 5%; width: 54px; height: 54px; transform: rotate(20deg); }
.brand-sparks span { position: absolute; width: 8px; height: 42px; background: #51ddf5; border-radius: 8px; }
.brand-sparks span + span { left: 29px; top: 14px; height: 34px; transform: rotate(29deg); }
.login-panel { padding: 70px clamp(32px, 4.1vw, 68px); background: linear-gradient(135deg, #fff, #fdfdff); display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 500px; }
.login-heading { margin-bottom: 38px; }
.login-heading h2 { font-size: clamp(38px, 3.35vw, 56px); line-height: 1.15; letter-spacing: -.045em; font-weight: 800; }
.login-heading p { margin-top: 4px; font-size: clamp(19px, 1.5vw, 25px); color: var(--muted); letter-spacing: -.025em; }
.form-group + .form-group { margin-top: 26px; }
.form-group label { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.035em; margin-bottom: 12px; }
.input-wrap { position: relative; }
.input-wrap input { display: block; width: 100%; height: 68px; padding: 0 20px 0 70px; border: 1px solid #bddbff; border-radius: 16px; outline: none; background: #e8f3ff; color: var(--ink); font-size: 17px; letter-spacing: -.025em; transition: border-color .2s, box-shadow .2s; }
.input-wrap input::placeholder { color: #7385a4; opacity: 1; }
.input-wrap input:focus { border-color: #2583ff; box-shadow: 0 0 0 4px rgba(37, 131, 255, .13); }
.input-icon { position: absolute; top: 50%; left: 23px; transform: translateY(-50%); width: 27px; height: 27px; color: #607ba2; pointer-events: none; }
.input-wrap .password-input { padding-right: 58px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; padding: 10px; display: grid; place-items: center; border-radius: 10px; background: transparent; color: #607ba2; }
.password-toggle:hover { color: #1354a6; background: rgba(54, 133, 230, .09); }
.password-toggle:focus-visible, .btn-login:focus-visible { outline: 3px solid #227cff; outline-offset: 4px; }
.btn-login { display: flex; gap: 18px; justify-content: center; align-items: center; width: 100%; min-height: 68px; margin-top: 20px; border: 0; border-radius: 16px; padding: 16px; color: white; background: linear-gradient(105deg, #0862ff 0%, #00b2d4 65%, #00d2b8 100%); font-size: 22px; font-weight: 600; letter-spacing: -.025em; box-shadow: 0 8px 20px rgba(0, 125, 235, .14); transition: filter .2s, transform .2s; }
.btn-login:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-login:disabled { cursor: wait; opacity: .8; transform: none; }
.security-note { margin-top: 38px; border-top: 1px solid #cfdbed; padding-top: 42px; display: flex; align-items: center; gap: 24px; position: relative; isolation: isolate; }
.security-note::before { content: ''; position: absolute; inset: 42px 0 0; border-radius: 20px; background: #f2f7fe; z-index: -1; }
.security-icon { flex-shrink: 0; display: grid; place-items: center; width: 66px; height: 68px; margin: 24px 0 24px 24px; background: #e3efff; color: #103b70; border-radius: 18px; }
.security-icon .icon { width: 32px; height: 32px; }
.security-note strong { display: block; color: #2a4479; font-size: 17px; font-weight: 700; letter-spacing: -.025em; padding-right: 12px; }
.security-note p { color: #7890b7; font-size: 15px; margin-top: 8px; padding-right: 12px; }
.alert-error { border: 1px solid #f5c6ca; background: #fff1f2; color: #9f2337; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; margin: -12px 0 24px; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1800px) { .login-shell { min-height: 890px; } }
@media (max-width: 1250px) {
    .login-shell { grid-template-columns: 58% 42%; }
    .login-brand { padding: 34px 32px 42px; }
    .brand-content { width: 75%; margin-top: 110px; }
    .brand-content h1 { font-size: 46px; }
    .feature-grid { margin-top: 34px; gap: 14px; }
    .feature-card { padding: 14px; gap: 12px; min-height: 90px; }
    .feature-icon { width: 46px; height: 50px; border-radius: 15px; }
    .feature-icon .icon { width: 27px; height: 27px; }
    .brand-dog { width: 50%; right: -9%; }
    .brand-footer { font-size: 8px; letter-spacing: .27em; }
    .login-panel { padding: 54px 32px; }
    .security-note { gap: 15px; }
    .security-icon { margin-left: 18px; width: 54px; height: 58px; }
    .security-note strong { font-size: 15px; }
}
@media (max-width: 960px) {
    .groomia-login { padding: 20px; }
    .login-shell { max-width: 560px; grid-template-columns: 1fr; min-height: auto; border-radius: 24px; }
    .login-brand { padding: 24px 30px 30px; min-height: 194px; }
    .brand-logo { width: 175px; }
    .brand-content { width: auto; margin-top: 20px; }
    .brand-content h1 { font-size: 32px; }
    .brand-subtitle { font-size: 18px; margin-top: 6px; }
    .feature-grid, .brand-footer, .brand-paw, .brand-sparks { display: none; }
    .brand-dog { max-height: 92%; width: 36%; right: 0; }
    .brand-orb-top { width: 210px; height: 210px; top: -100px; }
    .login-panel { padding: 36px 32px; }
    .login-heading { margin-bottom: 30px; }
    .login-heading h2 { font-size: 38px; }
    .login-heading p { font-size: 20px; }
    .security-note { margin-top: 30px; padding-top: 26px; }
    .security-note::before { top: 26px; }
    .security-icon { margin-top: 18px; margin-bottom: 18px; }
}
@media (max-width: 480px) {
    .groomia-login { padding: 12px; }
    .login-shell { border-radius: 20px; }
    .login-brand { padding: 20px 24px 24px; min-height: 176px; }
    .brand-logo { width: 152px; }
    .brand-content { margin-top: 17px; }
    .brand-content h1 { font-size: clamp(26px, 7.4vw, 32px); }
    .brand-subtitle { font-size: 16px; }
    .brand-dog { width: 34%; right: -5%; max-height: 82%; }
    .login-panel { padding: 30px 24px; }
    .login-heading h2 { font-size: 34px; }
    .login-heading p { font-size: 18px; }
    .form-group label { font-size: 15px; margin-bottom: 10px; }
    .form-group + .form-group { margin-top: 22px; }
    .input-wrap input { height: 58px; font-size: 16px; padding-left: 52px; border-radius: 13px; }
    .input-icon { left: 17px; width: 23px; height: 23px; }
    .btn-login { min-height: 58px; font-size: 18px; border-radius: 13px; }
    .security-note { gap: 12px; }
    .security-icon { width: 44px; height: 48px; border-radius: 13px; margin-left: 14px; }
    .security-icon .icon { width: 26px; height: 26px; }
    .security-note strong { font-size: 13px; }
    .security-note p { font-size: 12px; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media (min-width: 961px) and (min-height: 851px) {
    .login-card { transform: translateY(44px); }
}
@media (min-width: 961px) and (max-height: 850px) {
    .login-shell { min-height: max(700px, calc(100svh - 48px)); }
    .login-brand { padding: 32px 40px; }
    .brand-logo { width: 210px; }
    .brand-content { margin-top: 64px; }
    .brand-content h1 { font-size: clamp(43px, 4.1vw, 60px); }
    .brand-subtitle { font-size: 26px; }
    .feature-grid { margin-top: 32px; gap: 14px; }
    .feature-card { min-height: 88px; padding: 14px; gap: 14px; }
    .feature-icon { width: 50px; height: 54px; border-radius: 16px; }
    .feature-icon .icon { width: 28px; height: 28px; }
    .brand-footer { padding-top: 48px; }
    .login-panel { padding-top: 42px; padding-bottom: 42px; }
    .login-heading { margin-bottom: 30px; }
    .input-wrap input { height: 60px; }
    .btn-login { min-height: 60px; font-size: 20px; }
    .security-note { margin-top: 28px; padding-top: 28px; }
    .security-note::before { top: 28px; }
    .security-icon { margin-top: 20px; margin-bottom: 20px; }
}
