@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --orange: #ff982e;
    --orange-dark: #e67e17;
    --ink: #252525;
    --muted: #737985;
    --line: #e6e7eb;
    --danger: #b42318;
    --success: #067647;
    --focus: rgba(255, 152, 46, .22)
}

* {
    box-sizing: border-box
}

html {
    min-height: 100%;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink)
}

body {
    margin: 0;
    min-height: 100vh
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    background: #f5f5f4;
    background-image: radial-gradient(ellipse at 15% 15%, rgba(255, 152, 46, .13), transparent 36%), radial-gradient(ellipse at 90% 85%, rgba(45, 45, 45, .08), transparent 34%)
}

.login-shell {
    width: min(100%, 1020px);
    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: stretch;
    gap: 42px
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 590px;
    padding: 52px;
    border-radius: 24px;
    overflow: hidden;
    background: #383838;
    color: white;
    box-shadow: 0 24px 70px rgba(30, 30, 30, .14)
}

.login-brand:after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -130px;
    bottom: -140px;
    border: 55px solid rgba(255, 152, 46, .16);
    border-radius: 50%
}

.brand-logo {
    display: block;
    width: min(100%, 250px);
    height: auto;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 25px
}

.brand-kicker,
.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--orange)
}

.login-brand h1 {
    font: 800 clamp(32px, 4vw, 46px)/1.15 Manrope, sans-serif;
    letter-spacing: -1.8px;
    margin: 18px 0
}

.login-brand h1 span {
    color: var(--orange)
}

.login-brand p {
    max-width: 360px;
    color: #c7c7c7;
    font-size: 15px;
    line-height: 1.8;
    margin: 0
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 52px;
    color: #ddd;
    font-size: 12px
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #52d39b;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(82, 211, 155, .13)
}

.login-card {
    align-self: center;
    background: #fff;
    border: 1px solid rgba(225, 226, 229, .9);
    border-radius: 22px;
    padding: 38px 34px;
    box-shadow: 0 20px 60px rgba(34, 34, 34, .08)
}

.mobile-logo {
    display: none
}

.login-heading {
    margin-bottom: 28px
}

.login-heading h2 {
    font: 800 25px/1.25 Manrope, sans-serif;
    letter-spacing: -.7px;
    margin: 10px 0
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6
}

.form-group {
    margin-bottom: 20px
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px
}

.field-wrap {
    position: relative
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9a9da5;
    pointer-events: none
}

.form-control {
    width: 100%;
    height: 49px;
    border: 1px solid #dedfe3;
    border-radius: 10px;
    background: #fff;
    padding: 0 14px 0 40px;
    color: var(--ink);
    font: 500 14px 'DM Sans', sans-serif;
    outline: none;
    transition: border-color .18s, box-shadow .18s
}

.form-control::placeholder {
    color: #a4a7af
}

.form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--focus)
}

.password-control {
    padding-right: 70px
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #b8660e;
    font-size: 12px;
    font-weight: 800;
    padding: 8px;
    cursor: pointer
}

.password-toggle:focus-visible,
.login-button:focus-visible {
    outline: 3px solid #ffd09a;
    outline-offset: 3px
}

.field-error {
    display: block;
    min-height: 0;
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5;
    margin-top: 5px
}

.field-error:empty {
    display: none
}

.login-button {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border: 0;
    border-radius: 10px;
    background: var(--orange);
    color: #252525;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 152, 46, .22);
    transition: background .18s, transform .18s
}

.login-button:hover {
    background: #ffab4f;
    transform: translateY(-1px)
}

.login-button:disabled {
    opacity: .7;
    cursor: wait;
    transform: none
}

.login-button span:last-child {
    font-size: 21px
}

.form-hint {
    min-height: 0;
    margin: 0;
    color: var(--danger);
    font-size: 12px
}

.secure-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 19px;
    border-top: 1px solid #f0f0f0;
    color: #777d87;
    font-size: 11px
}

.secure-note span:first-child {
    color: var(--orange-dark)
}

.alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 13px;
    border-radius: 10px;
    margin-bottom: 19px;
    font-size: 12px;
    line-height: 1.5
}

.alert-error {
    color: #8f1d16;
    background: #fff1f0;
    border: 1px solid #ffd3d0
}

.alert-success {
    color: #05603a;
    background: #ecfdf3;
    border: 1px solid #abefc6
}

.alert strong {
    font-size: 13px
}

.login-footer {
    grid-column: 1/-1;
    text-align: center;
    color: #888d95;
    font-size: 11px
}

.login-footer span {
    padding: 0 7px;
    color: var(--orange-dark)
}

@media(max-width:850px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 460px;
        gap: 20px
    }

    .login-brand {
        display: none
    }

    .login-card {
        padding: 32px 27px
    }

    .mobile-logo {
        display: block;
        margin-bottom: 28px
    }

    .mobile-logo img {
        display: block;
        width: 220px;
        max-width: 100%;
        height: auto
    }

    .login-footer {
        grid-column: auto
    }
}

@media(max-width:480px) {
    .login-page {
        padding: 18px 12px
    }

    .login-card {
        padding: 27px 21px;
        border-radius: 17px
    }

    .login-heading h2 {
        font-size: 22px
    }

    .login-footer {
        line-height: 1.7
    }
}