
:root {
    color-scheme: dark;
    --bg: #080808;
    --surface: #101010;
    --border: rgba(255,255,255,.11);
    --text: #f4f4f4;
    --muted: #929292;
    --red: #d9363e;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.login-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    min-height: 100vh;
}

.login-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-grid, .dashboard-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to right, black, transparent);
}

.login-orb {
    position: absolute;
    width: 330px;
    aspect-ratio: 1;
    border: 1px solid rgba(217,54,62,.17);
    border-radius: 50%;
    box-shadow: inset 0 0 90px rgba(217,54,62,.04);
    animation: orb-float 12s ease-in-out infinite alternate;
}

.orb-one { left: 10%; top: 12%; }
.orb-two {
    left: 32%;
    top: 52%;
    width: 210px;
    animation-delay: -5s;
}

.login-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px clamp(24px, 5vw, 80px);
    background: rgba(8,8,8,.93);
    border-left: 1px solid var(--border);
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 45px clamp(25px, 5vw, 80px);
    overflow: hidden;
}

.brand-logo, .dashboard-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.brand-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-accent, .dashboard-brand > span > span { color: #aaa; }

.brand-message {
    max-width: 560px;
    animation: rise-in .8s ease both;
}

.eyebrow {
    color: #a7a7a7;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .17em;
}

.brand-message h1 {
    margin: 22px 0;
    font-size: clamp(2.5rem, 4.5vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -.065em;
}

.brand-message h1 span { color: #a4a4a4; }

.brand-message p, .login-card-heading p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.9;
}

.login-visuals {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 85px;
}

.login-visuals img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: grayscale(.3);
    opacity: .7;
    animation: visual-float 4s ease-in-out infinite alternate;
}

.login-visuals img:nth-child(even) {
    animation-delay: -2s;
    width: 32px;
    height: 32px;
}

.brand-footer, .login-legal {
    color: #707070;
    font-size: .62rem;
    letter-spacing: .12em;
}

.login-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    animation: rise-in .65s ease both;
}

.login-card-heading { margin-bottom: 30px; }

.login-card-heading h2 {
    margin: 13px 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    letter-spacing: -.05em;
}

.login-card-heading p { margin: 0; }

.google-button, .login-submit {
    display: flex;
    width: 100%;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #393939;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 650;
    transition: .2s ease;
}

.google-button { background: #111; color: #eee; }
.google-button:hover { border-color: #777; background: #171717; }

.google-mark {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ddd;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 27px 0;
    color: #777;
    font-size: .61rem;
    letter-spacing: .08em;
}

.login-divider::before, .login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.login-form { display: grid; gap: 21px; }
.login-field label {
    display: block;
    margin-bottom: 9px;
    color: #d1d1d1;
    font-size: .75rem;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    min-height: 49px;
    padding: 0 14px;
    border: 1px solid #303030;
    border-radius: 0;
    outline: none;
    background: #0b0b0b;
    color: white;
    font-size: .83rem;
}

.login-field input:focus {
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(255,255,255,.035);
}

.login-field input::placeholder { color: #626262; }

.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 82px; }

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 49px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: .7rem;
    cursor: pointer;
}

.login-submit {
    margin-top: 4px;
    padding: 0 17px;
    justify-content: space-between;
    background: #eee;
    color: #090909;
    border-color: #eee;
}

.login-submit:hover { background: white; }
.login-submit span { font-size: 1.1rem; }

.login-messages { margin-bottom: 20px; }
.login-message {
    padding: 12px;
    border: 1px solid rgba(217,54,62,.35);
    background: rgba(217,54,62,.08);
    color: #efb7ba;
    font-size: .77rem;
    line-height: 1.6;
}

.login-security {
    margin-top: 27px;
    color: #777;
    text-align: center;
    font-size: .69rem;
}

.login-security span { color: #aaa; }

.login-legal {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 30px;
}

button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes visual-float {
    from { transform: translateY(-4px); }
    to { transform: translateY(5px); }
}

@keyframes orb-float {
    from { transform: translate(0,0) scale(.95); }
    to { transform: translate(25px,-16px) scale(1.05); }
}

@media (max-width: 850px) {
    .login-layout { grid-template-columns: 1fr; }
    .login-brand { min-height: 340px; padding: 30px 25px; }
    .brand-message { margin: 60px 0 35px; }
    .brand-message h1 { font-size: clamp(2.4rem, 9vw, 4rem); }
    .login-visuals { display: none; }
    .brand-footer { display: none; }
    .login-side { padding: 42px 25px; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
