* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    color: #30343b;
    background: #dfe8eb url("/assets/img/bg.png") center center / cover no-repeat fixed;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    content: "";
    background: rgba(15, 35, 43, .28);
}

.login-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 0;
    background: transparent !important;
}

.login-hero {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    max-width: 100%;
    transform: translate(-50%, -50%);
}

.login-card {
    min-height: 520px;
    padding: 26px 30px 32px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(20, 35, 45, .24);
}

.login-card-heading {
    display: block;
    margin: 0 0 24px;
    text-align: center;
    font-size: 0;
}

.login-card-logo {
    display: inline-block;
    width: 80px;
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

.login-tabs {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 27px;
}

.login-tab {
    position: relative;
    padding: 0 1px 13px;
    color: #34373c;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: color .2s;
}

.login-tab.active {
    color: #1CC09F;
}

.login-tab.active::after {
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: #1CC09F;
    content: "";
    transform: translateX(50%);
}

.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

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

.form-label {
    display: none;
}

.login-input {
    width: 100%;
    height: 52px;
    padding: 0 10px;
    border: 0 !important;
    border-bottom: 1px solid #e1e6eb !important;
    border-inline-end: 0 !important;
    border-radius: 0;
    outline: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #30343b;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.login-input:focus {
    border: 0 !important;
    border-bottom: 2px solid #1CC09F !important;
    border-inline-end: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.login-input::placeholder {
    color: #aab3be;
}

.login-password {
    position: relative;
}

.login-password .login-input {
    padding-right: 42px;
}

.login-password .toggle-password {
    position: absolute;
    top: 0;
    right: 14px;
    width: 28px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aab3be;
    font-size: 14px;
    line-height: 52px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-password .toggle-password svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-password .toggle-password .eye-slash-icon,
.login-password .toggle-password.is-visible .eye-icon {
    display: none;
}

.login-password .toggle-password.is-visible .eye-slash-icon {
    display: block;
}

.login-password .toggle-password:hover,
.login-password .toggle-password:focus {
    color: #1CC09F;
    outline: none;
}

.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-row .login-input {
    flex: 1;
}

.captcha-img {
    height: 42px;
    min-width: 96px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f7f9;
    cursor: pointer;
}

.captcha-img img {
    height: 42px;
}

.remember-row {
    display: flex;
    align-items: center;
    margin: 6px 0 20px;
    color: #7e8791;
    font-size: 13px;
}

.remember-row input {
    margin: 0 8px 0 0;
    accent-color: #1CC09F;
}

.login-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: #1CC09F;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(28, 192, 159, .22);
    transition: transform .18s, box-shadow .18s, filter .18s;
}

.login-btn:hover,
.login-btn:focus {
    color: #fff;
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(28, 192, 159, .30);
}

.login-btn.disabled-btn {
    opacity: .72;
    cursor: default;
    filter: grayscale(.12);
}

.login-tip {
    display: none;
    margin-top: 12px;
    color: rgba(255, 255, 255, .66);
    text-align: center;
    font-size: 12px;
}

.login-footer {
    position: fixed;
    right: 0;
    bottom: 28px;
    left: 0;
    z-index: 1;
    color: rgba(255, 255, 255, .92);
    text-align: center;
    font-size: 12px;
}

.login-footer a {
    color: #fff;
}

.alert {
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .96);
    color: #334155;
}

@media (max-width: 768px) {
    body { overflow: auto; }

    .login-page {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 28px 20px 84px;
    }

    .login-hero {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .login-card {
        padding: 28px 22px;
    }
}
