body {
    margin: 0;
    padding: 0;
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('/images/login-hero.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.login-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 36px 24px 20px;
    color: #ffffff;
}

.login-hero__logo {
    width: 124px;
    height: auto;
}

.login-hero__copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-hero__title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.14;
    letter-spacing: -0.01em;
}

.login-hero__title b {
    font-weight: 700;
}

.login-hero__kicker {
    margin: 14px 0 0;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.92;
}

.login-panel {
    padding: 0 12px 28px;
}

.login-panel__inner {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-panel__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #111827;
}

.login-panel__subtitle {
    margin: 8px 0 0 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #6b7280;
}

.form-group {
    margin-top: 1.25rem;
}
.form-group label {
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    display: block;
}
.form-control {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #111827 !important;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}
.form-control::placeholder {
    color: #9ca3af;
}
.form-control:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    color: #111827;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.forgot-password {
    text-align: right;
    margin-top: 0.6rem;
}
.forgot-password a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
}
.forgot-password a:hover {
    text-decoration: underline;
}

/* CTA pill: gradient painted on the wrapper (not the button) so the two
   drifting orb highlights can sit between the fill and the label. */
.btn-login-wrap {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 1.5rem;
    border-radius: 999px;
    background: linear-gradient(152deg, #4a7ce8 0%, #2563eb 55%, #8fb3f7 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-login__orb {
    position: absolute;
    top: 5px;
    left: 26px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    pointer-events: none;
    will-change: transform;
    animation: mai-cta-orb-a 13s ease-in-out infinite;
}
.btn-login__orb--trailing {
    top: 12px;
    left: auto;
    right: 30px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.18);
    animation: mai-cta-orb-b 17s ease-in-out infinite;
}
@keyframes mai-cta-orb-a {
    0% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(42px, 6px) scale(1.12); }
    60% { transform: translate(78px, -5px) scale(0.92); }
    85% { transform: translate(26px, 4px) scale(1.06); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes mai-cta-orb-b {
    0% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(-38px, -6px) scale(1.1); }
    60% { transform: translate(-70px, 7px) scale(0.94); }
    85% { transform: translate(-24px, -4px) scale(1.04); }
    100% { transform: translate(0, 0) scale(1); }
}

.btn-login {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.9rem;
    background: transparent;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
}
.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.08);
}
.btn-login:active {
    background-color: rgba(255, 255, 255, 0.14);
}

.alert {
    margin-top: 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #111827;
    background: #f3f4f6;
}
.alert-danger {
    border-left: 3px solid #d63b3b;
}
.alert-success {
    border-left: 3px solid #25bd6e;
}

/* Tablet: full-width sheet leaves the pill absurdly wide; cap and centre it
   while keeping the stacked layout. */
@media (min-width: 640px) and (max-width: 1023.98px) {
    .login-panel {
        display: flex;
        justify-content: center;
    }
    .login-panel__inner {
        width: 100%;
        max-width: 460px;
    }
}

/* Desktop: photo-left / panel-right split. */
@media (min-width: 1024px) {
    .login-shell {
        flex-direction: row;
        background-image: none;
    }
    .login-hero {
        flex: 0 0 56%;
        padding: 44px 48px 48px;
        background-image: url('/images/login-hero.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }
    .login-hero__logo {
        width: 148px;
    }
    .login-hero__copy {
        justify-content: flex-end;
    }
    .login-hero__title {
        font-size: 3.25rem;
    }
    .login-panel {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 48px;
        background: #f8f8f8;
    }
    .login-panel__inner {
        width: 100%;
        max-width: 380px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    .login-panel__title {
        font-size: 2rem;
    }
    .login-panel__subtitle {
        font-size: 1rem;
    }
    .btn-login-wrap {
        margin-top: 2rem;
    }
}

@media (min-width: 1440px) {
    .login-hero {
        padding: 56px 64px 64px;
    }
    .login-hero__title {
        font-size: 3.75rem;
    }
}
