:root {
    --forest: #092b20;
    --forest2: #14583f;
    --green: #1d8a60;
    --mint: #55d69c;
    --ink: #17382e;
    --muted: #748a82;
    --line: #d8e5df;
    --bg: #f3f7f5;
}

* { box-sizing: border-box; }

.premium-cursor-active,
.premium-cursor-active * { cursor: none !important; }

html,
body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Arial, sans-serif;
}

button,
input { font: inherit; }

.premium-aircraft-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 27px;
    height: 27px;
    overflow: visible;
    opacity: 0;
    color: #43d991;
    filter: drop-shadow(0 2px 2px rgba(3, 41, 27, .55));
    pointer-events: none !important;
    user-select: none;
    will-change: transform;
    transform: translate3d(-100px, -100px, 0);
    transition: opacity .08s linear;
}

.premium-aircraft-cursor.is-active { opacity: 1; }

.premium-aircraft-cursor path {
    fill: currentColor;
    stroke: #fff;
    stroke-width: 2.4;
    transform: rotate(-45deg);
    transform-box: fill-box;
    transform-origin: center;
}

.login {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(430px, .65fr);
    min-height: 100vh;
}

.loginVisual {
    position: relative;
    min-height: 100vh;
    padding: 44px 5vw;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 72% 25%, rgba(89, 218, 157, .19), transparent 32%),
        linear-gradient(135deg, #061f17, #0d4b35 65%, #16815a);
}

.loginVisual::after {
    position: absolute;
    right: -320px;
    bottom: -380px;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    box-shadow:
        0 0 0 90px rgba(255, 255, 255, .025),
        0 0 0 180px rgba(255, 255, 255, .018);
    content: "";
}

.edairLarge {
    width: 215px;
    height: 85px;
    object-fit: contain;
    object-position: left;
    filter: brightness(0) invert(1);
}

.welcome {
    position: relative;
    z-index: 2;
    margin-top: 11vh;
}

.welcome h1 {
    margin: 18px 0;
    font: 400 clamp(48px, 5vw, 76px) / 1.08 Georgia, serif;
}

.institutions {
    position: absolute;
    bottom: 11vh;
    left: 5vw;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 46px;
}

.clothScene {
    position: relative;
    width: 245px;
    height: 154px;
    contain: layout paint style;
    isolation: isolate;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .32));
    transform: rotate(-1deg);
    transform-origin: left center;
}

.clothScene canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.crest {
    width: 162px;
    height: 162px;
    padding-left: 34px;
    border-left: 1px solid rgba(255, 255, 255, .2);
    object-fit: contain;
}

.loginForm {
    display: grid;
    place-items: center;
    padding: 60px;
    background: #f8faf9;
}

.loginForm form {
    width: min(100%, 470px);
    animation: form-arrival .55s ease-out both;
}

.eyebrow {
    margin: 0;
    color: var(--mint);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .2em;
}

.loginForm h2 {
    margin: 12px 0 8px;
    font: 500 42px Georgia, serif;
}

.loginForm form > p:not(.eyebrow) {
    margin: 0 0 35px;
    color: var(--muted);
    font-size: 14px;
}

.loginForm label {
    display: grid;
    gap: 9px;
    margin-top: 20px;
    font-size: 12px;
    font-weight: 800;
}

.loginForm input {
    height: 56px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    background: #fff;
}

.loginForm input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(29, 138, 96, .11);
}

.loginForm button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 56px;
    margin-top: 28px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(90deg, #16704e, #27a873);
    box-shadow: 0 14px 30px rgba(21, 112, 77, .23);
    cursor: pointer;
    font-weight: 900;
}

.forgot {
    display: block;
    margin: 18px auto;
    border: 0;
    color: #247c59;
    background: none;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

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

@keyframes form-arrival {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .loginForm form { animation: none; }
}

@media (pointer: coarse) {
    .premium-cursor-active,
    .premium-cursor-active * { cursor: auto !important; }
    .premium-aircraft-cursor { display: none; }
}

@media (max-width: 1050px) {
    .login { grid-template-columns: 1fr; }
    .loginVisual { min-height: 590px; }
    .loginForm { min-height: 620px; }
    .institutions {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 55px;
    }
}

@media (max-width: 700px) {
    .loginVisual { padding: 28px 24px; }
    .edairLarge { width: 170px; }
    .welcome h1 { font-size: 42px; }
    .clothScene { width: 190px; height: 120px; }
    .crest { width: 90px; height: 90px; padding-left: 20px; }
    .institutions { gap: 24px; }
    .loginForm { padding: 45px 24px; }
}
