:root {
    color-scheme: light;
    --page-gutter: clamp(20px, 4.5vw, 56px);
    --shell-max-width: 1060px;
    --shell-max-height: 646px;
    --page-bg: #F5F6F8;
    --card: #FFFFFF;
    --field-bg: #F9FAFB;
    --field-border: #E5E7EB;
    --text: #111827;
    --muted: #5F6368;
    --soft: #6B7280;
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --graphite: #181D25;
    --amber-bright: #F59E0B;
    --shadow: 0 32px 90px rgba(24, 26, 31, 0.14);
    --input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }

body {
    width: 100%;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: var(--page-gutter);
    overflow-x: hidden;
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 19% 18%, rgba(245, 215, 138, 0.45), transparent 32%),
        radial-gradient(circle at 84% 16%, rgba(217, 144, 38, 0.16), transparent 28%),
        linear-gradient(180deg, #FFFFFF 0%, var(--page-bg) 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    width: min(var(--shell-max-width), calc(100vw - (var(--page-gutter) * 2)));
    height: clamp(560px, calc(100dvh - (var(--page-gutter) * 2)), var(--shell-max-height));
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    overflow: hidden;
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.visual-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(48px, 6vh, 64px) clamp(44px, 4.5vw, 58px);
    text-align: center;
    background:
        radial-gradient(circle at 52% 33%, rgba(217, 144, 38, 0.18), transparent 28%),
        linear-gradient(135deg, #FBF3E3 0%, #FFFDF9 66%, #F7EED9 100%);
}

.hero-icon-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 5px solid #FFFFFF;
    box-shadow: 0 22px 42px rgba(24, 26, 31, 0.16);
}

.hero-logo-img {
    width: 146px;
    height: 146px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(24, 26, 31, 0.18));
}

.orbit-badge {
    position: absolute;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(24, 26, 31, 0.14);
}
.orbit-badge svg { width: 24px; height: 24px; }
.orbit-badge--top { top: 18px; right: -4px; }
.orbit-badge--bottom { left: -4px; bottom: 24px; }

.visual-panel h2 {
    margin: 0 0 12px;
    font-size: 29px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--graphite);
}
.visual-panel p {
    max-width: 370px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(48px, 6vh, 64px) clamp(44px, 4.5vw, 58px);
    background: #FFFFFF;
}

.form-card { width: min(416px, 100%); display: grid; justify-items: center; }
.brand-tile {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid var(--field-border);
    padding: 6px;
    box-shadow: 0 10px 22px rgba(24, 26, 31, 0.12);
}
.brand-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }

.form-card h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.form-subtitle { margin: 10px 0 30px; color: var(--muted); font-size: 14px; font-weight: 500; }

.login-form { width: 100%; display: grid; gap: 20px; }
.login-alert {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid rgba(179, 38, 30, 0.25);
    background: rgba(179, 38, 30, 0.08);
    color: #B3261E; font-size: 13px;
}
.login-alert p { margin: 0; }

.field-group { display: grid; gap: 8px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-label { color: var(--graphite); font-size: 14px; font-weight: 800; }
.forgot-hint { color: var(--primary-dark); font-size: 12px; font-weight: 700; }

.input-wrap { position: relative; }
.input-icon, .password-toggle {
    position: absolute; top: 50%; transform: translateY(-50%); color: var(--soft);
}
.input-icon { left: 14px; display: grid; place-items: center; pointer-events: none; }
.input-icon svg, .password-toggle svg { width: 20px; height: 20px; }

.text-input {
    width: 100%; height: 50px;
    border: 1px solid var(--field-border);
    border-radius: 14px;
    background: var(--field-bg);
    box-shadow: var(--input-shadow);
    color: var(--text);
    font: inherit; font-size: 14px; font-weight: 600;
    outline: none;
    padding: 0 16px 0 44px;
    transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
.text-input:focus {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(217, 144, 38, 0.16);
}
.input-wrap--password .text-input { padding-right: 46px; }

.password-toggle {
    right: 12px; width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 0; background: transparent; cursor: pointer; padding: 0;
}

.submit-btn {
    width: 100%; height: 50px;
    border: 0; border-radius: 13px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #181D25;
    font: inherit; font-size: 14px; font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(217, 119, 6, 0.28);
    transition: transform 0.16s, box-shadow 0.16s;
}
.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(217, 119, 6, 0.36);
}

.copyright { margin: 28px 0 0; color: #8A8F98; font-size: 12px; font-weight: 600; text-align: center; }

@media (max-width: 900px) {
    body { padding: 20px; }
    .login-shell { grid-template-columns: 1fr; width: min(520px, 100%); height: auto; }
    .visual-panel { padding: 36px 28px; }
    .form-panel { padding: 40px 28px; }
    .hero-icon-wrap { width: 190px; height: 190px; margin-bottom: 22px; }
    .hero-logo-img { width: 112px; height: 112px; }
}
