:root {
    --gea-navy: #071d49;
    --gea-blue: #0d5bd7;
    --gea-blue-light: #1d8df5;
    --gea-green: #46b92f;
    --gea-orange: #ff7a18;
    --gea-red: #ef3f34;
    --ink: #10264a;
    --soft: #60708e;
    --border: #dfe6f0;
    --white: #ffffff;
    --success: #14a357;
    --danger: #d73a49;
    --shadow: 0 30px 80px rgba(2, 19, 52, 0.2);
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: "Inter", sans-serif;
    background: #eef3fa;
    color: var(--ink);
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(480px, 0.85fr);
    min-height: 100vh;
}

.hero-panel {
    position: relative;
    min-height: 100vh;
    padding: 34px 42px 26px;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 75% 30%, rgba(29, 141, 245, .22), transparent 28%),
        radial-gradient(circle at 45% 92%, rgba(70, 185, 47, .12), transparent 26%),
        linear-gradient(135deg, #031638, #06245a 55%, #07306d);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(72, 130, 214, .2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72, 130, 214, .2) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(to right, transparent 0, black 15%, black 80%, transparent 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-glow-one {
    width: 430px;
    height: 430px;
    right: 8%;
    top: 12%;
    background: rgba(20, 106, 235, .28);
}

.hero-glow-two {
    width: 330px;
    height: 330px;
    left: 28%;
    bottom: -8%;
    background: rgba(51, 180, 78, .14);
}

.hero-arc {
    position: absolute;
    right: -160px;
    top: -180px;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    border: 18px solid transparent;
    transform: rotate(18deg);
}

.hero-arc-blue {
    border-top-color: rgba(29, 141, 245, .9);
    border-right-color: rgba(29, 141, 245, .9);
}

.hero-arc-green {
    right: -180px;
    top: -200px;
    border-width: 6px;
    border-top-color: rgba(70, 185, 47, .95);
    border-right-color: rgba(70, 185, 47, .95);
}

.gea-brand {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gea-logo {
    width: 280px;
    height: 112px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, .18));
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(97, 230, 165, .38);
    border-radius: 999px;
    background: rgba(6, 50, 76, .55);
    color: #7cf0b3;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.availability-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #35e49b;
    box-shadow: 0 0 14px #35e49b;
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(350px, .9fr) minmax(430px, 1.1fr);
    align-items: center;
    min-height: calc(100vh - 190px);
}

.hero-copy {
    padding: 28px 0 30px;
}

.eyebrow {
    margin: 0 0 18px;
    color: #9ec8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(54px, 5.3vw, 88px);
    line-height: .95;
    letter-spacing: -4px;
    background: linear-gradient(90deg, #fff 5%, #73b6ff 60%, #8f6df4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy h1 span {
    display: block;
    margin-top: 16px;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    font-size: clamp(20px, 1.7vw, 29px);
    line-height: 1.25;
    letter-spacing: -1px;
}

.accent-line {
    width: 72px;
    height: 4px;
    margin: 24px 0;
    border-radius: 20px;
    background: linear-gradient(90deg, #2ba5ff, #3ecb65);
}

.hero-description {
    max-width: 560px;
    margin: 0;
    color: #d8e5f8;
    font-size: 16px;
    line-height: 1.75;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 650px;
    margin-top: 34px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 18px;
    border: 1px solid rgba(131, 173, 232, .28);
    border-radius: 15px;
    background: rgba(5, 32, 82, .58);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 13px;
    font-size: 22px;
}

.feature-blue {
    background: linear-gradient(135deg, #1686f4, #0a58cc);
}

.feature-green {
    background: linear-gradient(135deg, #59d768, #22a84a);
}

.feature-orange {
    background: linear-gradient(135deg, #ff9a31, #f06b14);
}

.feature-card strong {
    display: block;
    margin-bottom: 7px;
    color: white;
    font-size: 13px;
}

.feature-card span {
    color: #c7d6ec;
    font-size: 11px;
    line-height: 1.5;
}

.character-zone {
    position: relative;
    align-self: stretch;
    min-height: 620px;
}

.character-halo {
    position: absolute;
    width: 520px;
    height: 520px;
    right: 2%;
    top: 10%;
    border-radius: 50%;
    border: 1px solid rgba(90, 163, 255, .4);
    box-shadow: 0 0 80px rgba(16, 114, 238, .18), inset 0 0 55px rgba(16, 114, 238, .08);
}

.aura-character {
    position: absolute;
    right: -2%;
    bottom: -28px;
    width: min(650px, 47vw);
    max-height: 86vh;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 28px 35px rgba(0, 0, 0, .35));
}

.hero-footer {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(133, 169, 221, .2);
    color: #c6d4e8;
    font-size: 11px;
}

.form-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 34px 28px 0;
    background: #f6f8fc;
}

.login-card {
    width: min(100%, 650px);
    margin: auto;
    padding: clamp(34px, 5vh, 62px) clamp(32px, 4vw, 54px);
    border: 1px solid #d8e1ee;
    border-radius: 22px;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow);
}

.form-header {
    margin-bottom: 28px;
}

.corporate-label {
    color: var(--gea-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
}

.label-line {
    width: 46px;
    height: 3px;
    margin: 14px 0 24px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--gea-blue), var(--gea-blue-light));
}

.form-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(31px, 3vw, 46px);
    line-height: 1.15;
    letter-spacing: -1.8px;
}

.form-header h2 span {
    background: linear-gradient(90deg, var(--gea-blue), #7a58ec);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-header p {
    margin: 15px 0 0;
    color: var(--soft);
    font-size: 13px;
}

.django-messages {
    margin-bottom: 22px;
}

.system-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid #b9e5ca;
    border-radius: 12px;
    background: #effaf3;
    color: var(--success);
}

.system-message.error {
    border-color: #f2b8c1;
    background: #fff1f3;
    color: var(--danger);
}

.message-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: currentColor;
    color: white;
    font-size: 11px;
    font-weight: 800;
}

.system-message p {
    margin: 0;
    font-size: 12px;
}

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #41506c;
    font-size: 11px;
    font-weight: 700;
}

.input-container {
    display: flex;
    align-items: center;
    height: 62px;
    border: 1px solid #ccd7e6;
    border-radius: 11px;
    background: white;
    transition: .2s ease;
}

.input-container:focus-within {
    border-color: var(--gea-blue);
    box-shadow: 0 0 0 4px rgba(13, 91, 215, .1);
}

.input-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 100%;
    border-right: 1px solid #e4e9f1;
    color: var(--gea-blue);
    background: #f7f9fc;
    border-radius: 11px 0 0 11px;
}

.input-icon svg,
.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.input-container input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 15px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}

.input-container input::placeholder {
    color: #8b98ad;
}

.password-toggle {
    display: grid;
    place-items: center;
    width: 54px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #71809a;
}

.password-toggle:hover,
.password-visible {
    color: var(--gea-blue);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 28px;
}

.remember-box {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #5c6a82;
    font-size: 11px;
    cursor: pointer;
}

.remember-box input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid #aab6c7;
    border-radius: 4px;
    background: white;
}

.remember-box input:checked+.custom-checkbox {
    border-color: var(--gea-blue);
    background: var(--gea-blue);
}

.remember-box input:checked+.custom-checkbox::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    font-size: 11px;
    font-weight: 800;
}

.support-text {
    color: var(--gea-blue);
    font-size: 11px;
}

.login-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    height: 64px;
    border: 0;
    border-radius: 11px;
    overflow: hidden;
    background: linear-gradient(100deg, #0b57c9, #0f79ec 70%, #19a8f1);
    color: white;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(13, 91, 215, .25);
    transition: .2s ease;
}

.login-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: skewX(-18deg);
    transition: left .65s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 20px 36px rgba(13, 91, 215, .34);
}

.login-button:hover::before {
    left: 150%;
}

.login-arrow {
    font-size: 22px;
    font-weight: 400;
}

.support-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    margin-top: 16px;
    border: 1px solid #d5dfec;
    border-radius: 10px;
    color: var(--gea-blue);
    font-size: 12px;
    font-weight: 700;
    background: #fff;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 30px;
    color: #6a7891;
}

.powered-by span {
    flex: 1;
    height: 1px;
    background: #dce3ec;
}

.powered-by p {
    margin: 0;
    font-size: 11px;
    white-space: nowrap;
}

.powered-by strong {
    color: var(--gea-blue);
}

.bottom-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: calc(100% + 56px);
    margin: 28px -28px 0;
    padding: 18px 24px;
    border-top: 1px solid #dde5ef;
    background: white;
    color: #52617a;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 1280px) {
    .login-page {
        grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr);
    }

    .hero-panel {
        padding-left: 28px;
        padding-right: 28px;
    }

    .hero-layout {
        grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
    }

    .aura-character {
        right: -10%;
        width: 610px;
    }

    .gea-logo {
        width: 300px;
    }
}

@media (max-width: 980px) {
    .login-page {
        display: block;
    }

    .hero-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
        padding: 22px 18px 0;
    }

    .login-card {
        width: min(100%, 620px);
    }

    .bottom-strip {
        width: calc(100% + 36px);
        margin-left: -18px;
        margin-right: -18px;
    }
}

@media (max-width: 560px) {
    .login-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .bottom-strip {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .input-container {
        height: 58px;
    }

    .login-button {
        height: 59px;
    }
}