:root {
    --auth-blue: #2563eb;
    --auth-blue-dark: #1d4ed8;
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #cbd5e1;
    --auth-focus: #f59e0b;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: #fff;
    color: var(--auth-ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-visual { display: none; overflow: hidden; background: #dbeafe; }

.auth-panel {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    background: #fff;
}

.back-home {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.back-home:hover { color: var(--auth-blue-dark); }

.form-box { width: min(100%, 24rem); }
.logo { margin-bottom: 2rem; }
.logo-img { width: auto; height: 3rem; object-fit: contain; }

h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.subtitle {
    margin: 0.85rem 0 2rem;
    color: var(--auth-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.google-btn {
    display: flex;
    width: 100%;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--auth-border);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--auth-ink);
    padding: 0.75rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    font-weight: 700;
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.google-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.auth-legal {
    margin: 1.25rem 0 0;
    color: var(--auth-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.auth-legal a { color: var(--auth-blue-dark); font-weight: 600; }

a:focus-visible {
    outline: 3px solid var(--auth-focus);
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .auth-shell { grid-template-columns: minmax(0, 3fr) minmax(26rem, 2fr); }
    .auth-visual {
        display: block;
        background-image: url("/images/Mockups/01-1440.jpg");
        background-image: image-set(
            url("/images/Mockups/01-720.webp") 1x,
            url("/images/Mockups/01-1440.webp") 2x
        );
        background-position: center;
        background-size: cover;
    }
    .auth-panel { padding: 5rem clamp(2.5rem, 5vw, 5rem); }
    .back-home { top: 2rem; left: clamp(2.5rem, 5vw, 5rem); }
}

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