
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --brand: #0f7b6c;
    --brand-dark: #0b5d52;
    --brand-tint: #e6f4f1;
    --ink: #1b1b1f;
    --muted: #5b5b66;
    --border: #d6d6de;
}
html, body { height: 100%; }
body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--ink);
    min-height: 100vh;
}

body { display: flex; }
.hero {
    position: relative;
    flex: 1 1 auto;
    background-size: cover;
    background-position: center;
}
.hero__caption {
    position: absolute;
    bottom: 56px;
    left: 48px;
    right: 48px;
    color: #ffffff;
}
.hero__caption h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    max-width: 18ch;
    text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.hero__caption p {
    font-size: 1rem;
    opacity: 0.92;
    max-width: 44ch;
    text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.panel {
    flex: 0 0 45%;
    order: -1;
    max-width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}
.panel__inner { width: 100%; max-width: 400px; }
.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.logo svg { width: 40px; height: 40px; }
.logo span { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
h1 { font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 18px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus, input[type="password"]:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-tint);
}
.forgot { text-align: right; margin: -8px 0 18px; }
.back-link { margin-top: 18px; }
.link { color: var(--brand); font-size: 0.85rem; text-decoration: none; }
.link:hover { text-decoration: underline; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.checkbox-row label {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
button[type="submit"]:hover { background: var(--brand-dark); }
.error {
    background: #fdecea;
    border: 1px solid #f5c2bd;
    color: #b3261e;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.875rem;
    margin-bottom: 18px;
}
.foot { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 16px; }
.foot__meta { font-size: 0.75rem; color: var(--muted); }
.foot__vendor { font-size: 0.72rem; color: #9a9aa4; margin-top: 4px; }
@media (max-width: 1200px) {
    .panel { flex-basis: 55%; }
}
@media (max-width: 820px) {
    body { flex-direction: column; }
    .hero { flex: 0 0 180px; }
    .hero__caption { display: none; }
    .panel { flex: 1 1 auto; order: 0; }
}
