:root {
    --splash-border: #2f2f2f;
    --splash-text: #111111;
    --splash-accent: #0a6ad9;
    --splash-emphasis: #d50000;
    --login-accent: #45c18d;
    --login-shadow: rgba(14, 30, 24, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Microsoft YaHei", sans-serif;
    color: var(--splash-text);
    background: #f4f4f4;
}

.app-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.is-active {
    display: flex;
}

.screen-splash {
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 24px;
}

.panel {
    width: min(100%, 356px);
    border: 1px solid var(--splash-border);
    background: #ffffff;
}

.panel-splash {
    padding: 2px;
}

.panel-row,
.site-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid var(--splash-border);
    font-size: 13px;
}

.panel-row+.panel-row,
.site-row+.site-row,
.line-list,
.panel-sub {
    margin-top: 2px;
}

.panel-label {
    flex: 0 0 auto;
    font-weight: 600;
}

.panel-value {
    flex: 1;
}

.panel-value-emphasis,
.panel-row-note {
    color: var(--splash-emphasis);
    font-weight: 700;
}

.line-list {
    border: 1px solid var(--splash-border);
    padding: 6px 8px;
}

.line-item {
    width: 100%;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    text-align: left;
    font-size: 13px;
    color: var(--splash-accent);
    cursor: pointer;
}

.line-item:hover {
    opacity: 0.78;
}

.line-speed {
    color: #000000;
}

.panel-sub {
    width: 100%;
}

.panel-row-title {
    font-weight: 600;
}

.site-row {
    justify-content: space-between;
}

.site-link {
    color: #111111;
    text-decoration: none;
    cursor: pointer;
}

.site-link:hover {
    background: #f7f7f7;
}

.site-speed {
    color: #000000;
}

.screen-login {
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(218, 235, 247, 0.25) 0%, rgba(218, 235, 247, 0.05) 100%),
        radial-gradient(circle at 50% 95%, rgba(69, 170, 204, 0.95) 0, rgba(69, 170, 204, 0.95) 14%, rgba(58, 128, 167, 0.92) 20%, rgba(34, 76, 112, 0) 22%),
        linear-gradient(180deg, #eaf4fb 0 38%, #8db5d3 38% 57%, #58a2ca 57% 72%, #264d63 72% 100%);
}

.screen-login::before,
.screen-login::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.screen-login::before {
    background:
        linear-gradient(115deg, rgba(18, 39, 33, 0.82) 0 10%, transparent 10% 100%),
        linear-gradient(65deg, transparent 0 78%, rgba(14, 35, 24, 0.9) 78% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    mix-blend-mode: multiply;
}

.screen-login::after {
    background:
        radial-gradient(circle at 18% 42%, rgba(29, 57, 40, 0.82) 0 4px, transparent 4px),
        radial-gradient(circle at 83% 35%, rgba(18, 42, 29, 0.82) 0 4px, transparent 4px),
        radial-gradient(circle at 12% 66%, rgba(21, 44, 31, 0.76) 0 5px, transparent 5px),
        radial-gradient(circle at 87% 72%, rgba(18, 42, 29, 0.76) 0 5px, transparent 5px);
    opacity: 0.75;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    background:
        polygon(0 0, 0 0);
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 400px);
    padding: 30px 32px 28px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 46px var(--login-shadow);
}

.login-card-head {
    height: 44px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin: -4px -32px 22px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-message {
    min-height: 22px;
    color: #b13b3b;
    font-size: 13px;
    line-height: 22px;
}

.login-message-success {
    color: #188257;
}

.field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    background: #ffffff;
}

.field:focus-within {
    border-color: #8fd8b7;
    box-shadow: 0 0 0 3px rgba(69, 193, 141, 0.14);
}

.field-icon {
    color: var(--login-accent);
    font-size: 22px;
    line-height: 1;
}

.field input {
    width: 100%;
    border: 0;
    outline: 0;
    font-size: 15px;
    color: #333333;
    background: transparent;
}

.field input::placeholder {
    color: #8d7f89;
}

.login-button {
    height: 48px;
    border: 0;
    border-radius: 3px;
    background: var(--login-accent);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 6px;
    cursor: pointer;
}

.login-button:hover {
    background: #3db07f;
}

.login-button:disabled,
.login-session-button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.login-session {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-session-title {
    font-size: 22px;
    font-weight: 700;
    color: #1b2e23;
}

.login-session-text {
    color: #35453d;
    font-size: 14px;
    line-height: 1.7;
}

.login-session-button {
    height: 46px;
    border: 1px solid #97cdb4;
    border-radius: 3px;
    background: #eefaf4;
    color: #1a7b54;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.login-session-button:hover {
    background: #def3e8;
}

@media (max-width: 640px) {

    .screen-splash,
    .screen-login {
        padding: 16px;
    }

    .login-card {
        padding: 24px 18px 20px;
    }

    .login-card-head {
        margin-left: -18px;
        margin-right: -18px;
    }
}