:root {
    --brand-orange: #f55e10;
    --brand-orange-dark: #df4700;
    --navy: #071a39;
    --text: #16213a;
    --muted: #8490a5;
}

* {
    box-sizing: border-box;
}

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

body {
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 157, 86, .2), transparent 25%),
        radial-gradient(circle at 88% 88%, rgba(42, 111, 220, .16), transparent 30%),
        #f4f7fb;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-page {
    display: flex;
    min-height: 100vh;
    padding: 28px 56px 20px;
    flex-direction: column;
}

.site-header {
    display: flex;
    width: 100%;
    max-width: 1180px;
    min-height: 58px;
    margin: 0 auto 20px;
    align-items: center;
}

.site-logo {
    display: block;
    width: 225px;
    height: auto;
}

.login-card {
    display: grid;
    width: 100%;
    max-width: 1180px;
    min-height: 650px;
    margin: auto;
    overflow: hidden;
    grid-template-columns: 49% 51%;
    background: #fff;
    border: 1px solid rgba(222, 229, 239, .8);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(27, 53, 90, .13);
    animation: card-enter .55s ease-out both;
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.form-panel {
    display: flex;
    padding: 58px 76px;
    align-items: center;
}

.form-panel-inner {
    width: 100%;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
}

h1 {
    margin: 0;
    color: var(--navy);
    font-size: 36px;
    line-height: 1.3;
}

.form-description {
    margin: 10px 0 36px;
    color: var(--muted);
    font-size: 15px;
}

.login-form {
    margin: 0;
}

.form-field {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 18px;
}

.field-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 19px;
    width: 21px;
    height: 21px;
    color: #a5afbe;
    transform: translateY(-50%);
    pointer-events: none;
}

.field-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.form-field input {
    display: block;
    width: 100%;
    height: 58px;
    padding: 0 18px 0 54px;
    color: var(--text);
    font-size: 15px;
    line-height: 58px;
    background: #f7f9fc;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-field input::placeholder {
    color: #aab3c1;
}

.form-field input:focus {
    background: #fff;
    border-color: rgba(245, 94, 16, .7);
    box-shadow: 0 0 0 4px rgba(245, 94, 16, .1);
}

.captcha-row {
    display: grid;
    margin-bottom: 22px;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 12px;
}

.captcha-row .form-field {
    margin: 0;
}

.captcha-button {
    height: 58px;
    padding: 0;
    overflow: hidden;
    background: #f4f8ff;
    border: 1px solid #e0e7f1;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}

.captcha-button:hover,
.captcha-button:focus {
    border-color: rgba(245, 94, 16, .65);
    outline: none;
}

.captcha-button:active {
    transform: scale(.98);
}

.captcha-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.submit-button {
    width: 100%;
    height: 58px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(110deg, var(--brand-orange), #ff8744);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(245, 94, 16, .23);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.submit-button:hover:not(:disabled) {
    box-shadow: 0 15px 28px rgba(245, 94, 16, .3);
    transform: translateY(-1px);
}

.submit-button:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.login-links {
    display: flex;
    margin-top: 27px;
    align-items: center;
    justify-content: center;
    color: #68758a;
    font-size: 14px;
}

.login-links span {
    width: 1px;
    height: 14px;
    margin: 0 24px;
    background: #d9e0e9;
}

.login-links a {
    transition: color .2s;
}

.login-links a:hover {
    color: var(--brand-orange);
}

.hero-panel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #fff;
    background-color: #06172f;
    background-image: url("../../img/login/smart-wash-hero.jpg");
    background-position: center;
    background-size: cover;
}

@supports (background-image: image-set(url("../../img/login/smart-wash-hero.webp") type("image/webp"))) {
    .hero-panel {
        background-image: image-set(
            url("../../img/login/smart-wash-hero.webp") type("image/webp"),
            url("../../img/login/smart-wash-hero.jpg") type("image/jpeg")
        );
    }
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 17, 42, .33) 0%, rgba(4, 17, 42, .08) 55%, rgba(3, 13, 31, .3) 100%),
        linear-gradient(90deg, rgba(4, 18, 43, .24), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 470px;
    padding: 64px 58px;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 14px;
    align-items: center;
    color: #ffd0ad;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
    background: rgba(245, 94, 16, .15);
    border: 1px solid rgba(255, 146, 81, .38);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.hero-content h2 {
    margin: 22px 0 16px;
    font-size: 42px;
    line-height: 1.25;
    letter-spacing: 1px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.hero-content p {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    margin-top: 24px;
    gap: 10px;
}

.hero-features span {
    padding: 8px 14px;
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    background: rgba(9, 35, 75, .48);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.site-footer {
    display: flex;
    min-height: 42px;
    padding-top: 18px;
    align-items: flex-end;
    justify-content: center;
    color: #98a2b2;
    font-size: 13px;
}

.site-footer a:hover {
    color: var(--brand-orange-dark);
}

.footer-divider {
    margin: 0 10px;
}

@media (max-width: 1100px) {
    .login-page {
        padding-right: 32px;
        padding-left: 32px;
    }

    .login-card {
        grid-template-columns: 52% 48%;
    }

    .form-panel {
        padding-right: 52px;
        padding-left: 52px;
    }

    .hero-content {
        padding-right: 40px;
        padding-left: 40px;
    }
}

@media (max-width: 820px) {
    .login-page {
        padding: 22px 22px 18px;
    }

    .site-header {
        margin-bottom: 16px;
        justify-content: center;
    }

    .site-logo {
        width: 205px;
    }

    .login-card {
        display: block;
        max-width: 540px;
        min-height: 0;
    }

    .form-panel {
        padding: 52px 56px 44px;
    }

    .hero-panel {
        display: none;
    }
}

@media (max-width: 520px) {
    .login-page {
        padding: 16px 14px;
    }

    .site-header {
        min-height: 48px;
        margin-bottom: 12px;
    }

    .site-logo {
        width: 184px;
    }

    .login-card {
        border-radius: 18px;
    }

    .form-panel {
        padding: 38px 24px 32px;
    }

    h1 {
        font-size: 30px;
    }

    .form-description {
        margin-bottom: 28px;
        font-size: 14px;
    }

    .captcha-row {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 9px;
    }

    .login-links span {
        margin: 0 17px;
    }

    .site-footer {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        line-height: 1.8;
        text-align: center;
    }

    .footer-divider {
        display: none;
    }
}

@media (max-height: 760px) and (min-width: 821px) {
    .login-page {
        padding-top: 18px;
    }

    .site-header {
        min-height: 48px;
        margin-bottom: 12px;
    }

    .login-card,
    .hero-panel {
        min-height: 570px;
    }

    .form-panel {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .form-description {
        margin-bottom: 26px;
    }

    .form-field {
        margin-bottom: 14px;
    }

    .site-footer {
        padding-top: 12px;
    }
}
