:root {
    --bg: #eef6ff;
    --bg-deep: #dcedff;
    --panel: rgba(255, 255, 255, 0.84);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --border: rgba(113, 177, 255, 0.28);
    --text: #12304f;
    --muted: #587596;
    --primary: #2d8cff;
    --primary-soft: #6fb7ff;
    --primary-deep: #1566d8;
    --success-bg: #ebfff5;
    --success-text: #146a42;
    --error-bg: #fff0f0;
    --error-text: #b33636;
    --shadow: 0 30px 80px rgba(42, 117, 214, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(133, 203, 255, 0.95), transparent 32%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.9), transparent 30%),
        linear-gradient(135deg, #f8fcff 0%, #e6f1ff 48%, #d6ebff 100%);
}

.login-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 24px;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.55;
}

.ambient--one {
    top: -140px;
    right: -80px;
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg, rgba(106, 190, 255, 0.85), rgba(255, 255, 255, 0.45));
}

.ambient--two {
    bottom: -100px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(62, 160, 255, 0.48));
}

.login-layout {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    min-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: center;
}

.hero-panel,
.form-panel {
    border-radius: 32px;
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.hero-panel {
    border: 0;
    box-shadow: none;
}

.form-panel {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-panel {
    position: relative;
    padding: 40px;
    background:
        linear-gradient(180deg, rgba(34, 146, 255, 0.96) 0%, rgba(98, 180, 255, 0.91) 54%, rgba(186, 226, 255, 0.9) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: center;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-badge {
    align-items: center;
    gap: 10px;
}

.hero-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #ffffff;
    flex: 0 0 18px;
}

.hero-badge__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.hero-panel h1 {
    margin: 18px 0 14px;
    max-width: 620px;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.04;
}

.hero-panel p {
    margin: 0;
    max-width: 540px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.hero-point {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(19, 112, 220, 0.34) 0%, rgba(34, 146, 255, 0.28) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-point strong,
.hero-point span {
    display: block;
}

.hero-point strong {
    margin-bottom: 8px;
    font-size: 15px;
}

.hero-point span {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(236, 247, 255, 0.96);
}

.form-panel {
    padding: 34px;
    background: var(--panel);
    align-self: center;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--primary-deep);
}

.brand-mark__orb {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #b6e1ff);
    box-shadow: 0 0 0 8px rgba(45, 140, 255, 0.14);
}

.form-header h2 {
    margin: 0 0 8px;
    font-size: 32px;
}

.form-header p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.7;
}

.alert {
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 600;
}

.alert--success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert--error {
    background: var(--error-bg);
    color: var(--error-text);
}

.login-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--text);
}

.form-group input,.form-group select {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(123, 183, 255, 0.28);
    border-radius: 18px;
    background: var(--panel-strong);
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-group input:focus,.form-group select:focus {
    outline: none;
    border-color: rgba(45, 140, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(45, 140, 255, 0.12);
    transform: translateY(-1px);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--primary-deep);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: transparent;
    color: var(--primary);
}

.password-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.password-toggle__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .icon-eye-slash {
    display: none;
}

.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-slash {
    display: block;
}

.login-button {
    margin-top: 6px;
    border: 0;
    border-radius: 18px;
    padding: 16px 18px;
    font: inherit;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
    box-shadow: 0 18px 36px rgba(45, 140, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(45, 140, 255, 0.34);
}

.login-links {
    margin-top: 16px;
}

.text-link {
    color: var(--primary-deep);
    text-decoration: none;
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

.helper-row {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(123, 183, 255, 0.22);
    display: grid;
    gap: 4px;
}

.helper-row span {
    color: var(--muted);
    font-size: 13px;
}

.helper-row strong {
    word-break: break-all;
    color: var(--primary-deep);
}

@media (max-width: 980px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .hero-panel {
        display: none;
    }

    .login-layout {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 28px);
        align-items: center;
        justify-items: center;
    }

    .form-panel {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
        align-self: center;
    }

    .login-shell {
        padding: 14px;
    }

    .hero-panel,
    .form-panel {
        border-radius: 24px;
    }

    .hero-panel,
    .form-panel {
        padding: 24px;
    }

    .form-header h2 {
        font-size: 28px;
    }
}


@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGlowOne {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-16px, 18px, 0) scale(1.06);
    }
}

@keyframes floatGlowTwo {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, -14px, 0) scale(1.05);
    }
}

@keyframes floatCardFront {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -8px, 0) rotate(-1deg);
    }
}

@keyframes floatCardBack {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, 8px, 0) rotate(1deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ambient--one,
    .ambient--two,
    .hero-panel,
    .form-panel,
    .hero-point,
    .hero-illustration__card {
        animation: none !important;
    }
}


















:root[data-theme="dark"] {
    --bg: #0f172a;
    --bg-deep: #0b1220;
    --panel: rgba(15, 23, 42, 0.84);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --border: rgba(71, 85, 105, 0.76);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #60a5fa;
    --primary-soft: #38bdf8;
    --primary-deep: #93c5fd;
    --success-bg: #123022;
    --success-text: #86efac;
    --error-bg: #3a1717;
    --error-text: #fca5a5;
    --shadow: 0 30px 80px rgba(2, 8, 23, 0.5);
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 32%),
        radial-gradient(circle at bottom right, rgba(30, 41, 59, 0.3), transparent 30%),
        linear-gradient(135deg, #0b1220 0%, #0f172a 48%, #111827 100%);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.theme-toggle-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(45, 140, 255, 0.16);
}
.theme-toggle-login__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.theme-toggle-login__icon .theme-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle-login__icon .theme-icon--moon {
    display: none;
}

:root[data-theme="dark"] .theme-toggle-login__icon .theme-icon--sun {
    display: none;
}

:root[data-theme="dark"] .theme-toggle-login__icon .theme-icon--moon {
    display: block;
}

:root[data-theme="dark"] .theme-toggle-login {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(71, 85, 105, 0.78);
    color: #dbeafe;
}

:root[data-theme="dark"] .hero-panel {
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.9) 0%, rgba(14, 116, 144, 0.88) 58%, rgba(30, 41, 59, 0.88) 100%);
}

:root[data-theme="dark"] .hero-point {
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.34) 0%, rgba(14, 116, 144, 0.28) 100%);
}

@media (max-width: 560px) {
    .theme-toggle-login__label {
        display: none;
    }
}
