:root {
    color-scheme: light;
    --auth-ink: #123c4d;
    --auth-muted: #486b78;
    --auth-accent: #006e80;
    --auth-line: #c5dce2;
    --auth-field: #f4f9fa;
    --auth-field-height: 49px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #073b51;
    color: var(--auth-ink);
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

[v-cloak] {
    display: none;
}

.signin {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(64px, 1fr) auto minmax(64px, 1fr);
    justify-items: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding-inline: clamp(16px, 4vw, 54px);
    background:
        radial-gradient(ellipse at 47% 30%, #188696 0%, transparent 61%),
        radial-gradient(ellipse at 92% 82%, #10667f 0%, transparent 54%),
        linear-gradient(150deg, #0b5368, #07374e 83%);
}

.auth-backdrop {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 5% 81%, rgb(53 221 220 / 20%), transparent 32%),
        radial-gradient(ellipse at 94% 19%, rgb(46 173 222 / 21%), transparent 33%);
}

.auth-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgb(188 244 255 / 9%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(188 244 255 / 9%) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center;
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 83%);
}

.auth-backdrop::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(1250px, 91vw);
    height: clamp(240px, 30vw, 395px);
    border: 1px solid rgb(140 239 246 / 29%);
    border-radius: 50%;
    box-shadow:
        0 0 0 22px rgb(139 228 247 / 5%),
        0 0 0 54px rgb(139 228 247 / 7%),
        0 0 76px rgb(64 220 232 / 14%),
        inset 0 0 42px rgb(64 220 232 / 9%);
    background:
        radial-gradient(circle at 10% 21%, #c4fbfb 0 2px, rgb(112 246 245 / 38%) 3px, transparent 11px),
        radial-gradient(circle at 90% 79%, #c4fbfb 0 2px, rgb(112 246 245 / 38%) 3px, transparent 11px);
    transform: translate(-50%, -50%) rotate(-22deg);
}

.language-switcher {
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin-top: clamp(16px, 3vw, 30px);
}

.language-switcher .el-dropdown-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid rgb(204 246 255 / 29%);
    border-radius: 10px;
    background: rgb(221 249 255 / 9%);
    color: #effcff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.language-switcher .el-dropdown-link:hover {
    background: rgb(221 249 255 / 16%);
}

.auth-language-menu .el-dropdown-menu__item.is-active,
.auth-language-menu .el-dropdown-menu__item:not(.is-disabled):hover,
.auth-language-menu .el-dropdown-menu__item:focus {
    background: #e7f5f7;
    color: var(--auth-accent);
}

.auth-panel {
    position: relative;
    grid-row: 2;
    width: min(100%, 458px);
    padding: 34px 42px 32px;
    border: 1px solid #e4f7f9;
    border-radius: 26px;
    background: linear-gradient(155deg, #f4fbfc, #fcfeff 62%);
    box-shadow:
        0 0 0 7px rgb(215 250 251 / 10%),
        0 22px 64px rgb(0 34 50 / 35%);
    overflow-wrap: anywhere;
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: -1px 22% auto;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #31c9c6 35%, #299ec2 65%, transparent);
    pointer-events: none;
}

.auth-heading {
    margin-bottom: 27px;
    text-align: center;
}

.login-logo {
    display: block;
    width: 132px;
    height: 84px;
    max-width: 100%;
    margin: 0 auto 15px;
    object-fit: contain;
}

.loginTitle {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.32;
}

.loginSubtitle {
    margin: 9px 0 0;
    color: var(--auth-muted);
    font-size: .875rem;
    line-height: 1.55;
}

.loginNotice {
    margin-bottom: 16px;
    padding: 10px 13px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: #edf8fa;
    color: var(--auth-ink);
    font-size: .875rem;
    line-height: 1.55;
}

.auth-panel .el-form-item {
    margin-bottom: 14px;
}

.auth-panel .el-form-item__content {
    line-height: var(--auth-field-height);
}

.auth-panel .el-form-item__error {
    position: static;
    padding-top: 5px;
    line-height: 1.35;
}

.auth-panel .el-input__inner {
    height: var(--auth-field-height);
    padding-left: 40px;
    border: 1px solid var(--auth-line);
    border-radius: 11px;
    background: var(--auth-field);
    color: var(--auth-ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.auth-panel .el-input__inner::placeholder {
    color: var(--auth-muted);
    opacity: 1;
}

.auth-panel .el-input__inner:hover,
.captcha-refresh:hover {
    border-color: #76a9b4;
}

.auth-panel .el-input__inner:focus {
    border-color: #168599;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(22 133 153 / 14%);
}

.auth-panel .is-error .el-input__inner {
    border-color: #cb4b55;
}

.auth-panel .el-input__prefix {
    left: 10px;
}

.auth-panel .el-input__icon {
    color: #547a88;
    font-size: 17px;
    line-height: var(--auth-field-height);
}

.auth-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(84px, 32%);
    gap: 10px;
}

.auth-field-row .el-input {
    min-width: 0;
}

.auth-email-row {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 40%);
}

.captcha-refresh {
    display: block;
    width: 100%;
    height: var(--auth-field-height);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 11px;
    background: var(--auth-field);
    cursor: pointer;
}

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

.auth-panel .auth-options {
    margin: 17px 0 20px;
}

.auth-options .el-form-item__content {
    line-height: 20px;
}

.auth-options .el-checkbox {
    display: inline-flex;
    align-items: flex-start;
    max-width: 100%;
    margin: 0;
    color: var(--auth-muted);
    white-space: normal;
}

.auth-options .el-checkbox__input {
    flex: none;
    margin-top: 2px;
}

.auth-options .el-checkbox__label,
.auth-options .el-checkbox__input.is-checked + .el-checkbox__label {
    color: var(--auth-muted);
    line-height: 20px;
}

.auth-options .el-checkbox__inner {
    width: 16px;
    height: 16px;
    border-color: #7ba1ac;
    border-radius: 4px;
}

.auth-options .el-checkbox__inner::after {
    top: 2px;
    left: 5px;
}

.auth-options .el-checkbox__input.is-checked .el-checkbox__inner {
    border-color: var(--auth-accent);
    background: var(--auth-accent);
}

.auth-options .el-checkbox__input.is-focus .el-checkbox__inner {
    outline: 2px solid var(--auth-accent);
    outline-offset: 2px;
}

.auth-panel .auth-submit {
    margin-bottom: 0;
}

.auth-panel .el-button--primary {
    width: 100%;
    min-height: var(--auth-field-height);
    padding: 8px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(108deg, #007382, #075d7b);
    box-shadow: 0 8px 19px rgb(4 105 127 / 23%);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.25;
    white-space: normal;
    transition: background-color .18s, box-shadow .18s;
}

.auth-panel .el-button--primary:hover:not(.is-disabled, .is-loading) {
    background: linear-gradient(108deg, #006675, #064f69);
    box-shadow: 0 9px 22px rgb(4 105 127 / 31%);
}

.auth-panel .el-button--primary.is-disabled {
    background: #587e89;
    box-shadow: none;
}

.auth-email-row .el-button--primary {
    box-shadow: none;
    font-size: .8125rem;
}

.loginDesc {
    margin: 19px 0 0;
    color: var(--auth-muted);
    font-size: .875rem;
    line-height: 1.5;
    text-align: center;
}

.auth-link {
    margin-inline-start: 6px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: var(--auth-accent);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.signin button:focus-visible,
.brandFooter a:focus-visible {
    outline: 2px solid var(--auth-accent);
    outline-offset: 3px;
}

.language-switcher button:focus-visible,
.brandFooter a:focus-visible {
    outline-color: #d7faff;
}

.brandFooter {
    display: flex;
    grid-row: 3;
    align-self: end;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 18px 0 20px;
    color: #d1e9ed;
    font-size: .75rem;
    text-align: center;
}

.brandFooter a {
    color: inherit;
    text-underline-offset: 3px;
}

@media (max-width: 600px) {
    .auth-panel {
        padding: 27px clamp(18px, 6vw, 34px) 26px;
        border-radius: 22px;
    }

    .auth-heading {
        margin-bottom: 23px;
    }

    .login-logo {
        height: 72px;
        margin-bottom: 13px;
    }

    .auth-backdrop::after {
        width: 135vw;
        opacity: .7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-panel *,
    .language-switcher * {
        transition: none;
    }
}
