*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #fff;
    color: #111;
}

.page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

.left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    background: linear-gradient(135deg, #9ca3af, #6b7280, #4b5563);
    color: #fff;
    overflow: hidden;
}

.blob1,
.blob2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.blob1 {
    top: 25%;
    right: 25%;
    width: 256px;
    height: 256px;
    background: rgba(156, 163, 175, 0.2);
}

.blob2 {
    bottom: 25%;
    left: 25%;
    width: 384px;
    height: 384px;
    background: rgba(209, 213, 219, 0.2);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.05) 0 1px,
            transparent 1px 20px
    ),
    repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 0 1px,
            transparent 1px 20px
    );
    pointer-events: none;
}

.characters-wrap {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 500px;
}

.characters {
    position: relative;
    width: 550px;
    height: 400px;
}

.char {
    position: absolute;
    bottom: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom center;
}

.char-purple {
    left: 70px;
    width: 180px;
    height: 400px;
    background: #6c3ff5;
    border-radius: 10px 10px 0 0;
    z-index: 1;
}

.char-purple .eyes-wrap {
    position: absolute;
    display: flex;
    gap: 32px;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.char-black {
    left: 240px;
    width: 120px;
    height: 310px;
    background: #2d2d2d;
    border-radius: 8px 8px 0 0;
    z-index: 2;
}

.char-black .eyes-wrap {
    position: absolute;
    display: flex;
    gap: 24px;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.char-orange {
    left: 0;
    width: 240px;
    height: 200px;
    background: #ff9b6b;
    border-radius: 120px 120px 0 0;
    z-index: 3;
}

.char-orange .eyes-wrap {
    position: absolute;
    display: flex;
    gap: 32px;
    transition: all 0.2s ease-out;
}

.char-yellow {
    left: 310px;
    width: 140px;
    height: 230px;
    background: #e8d754;
    border-radius: 70px 70px 0 0;
    z-index: 4;
}

.char-yellow .eyes-wrap {
    position: absolute;
    display: flex;
    gap: 24px;
    transition: all 0.2s ease-out;
}

.char-yellow .mouth {
    position: absolute;
    width: 80px;
    height: 4px;
    background: #2d2d2d;
    border-radius: 4px;
    transition: all 0.2s ease-out;
}

.eyeball {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.15s;
    background: #fff;
}

.eyeball .pupil {
    border-radius: 50%;
    background: #2d2d2d;
    transition: transform 0.1s ease-out;
}

.pupil-only {
    border-radius: 50%;
    background: #2d2d2d;
    transition: transform 0.1s ease-out;
}

.right {
    --login-accent: #0f766e;
    --login-accent-strong: #0d9488;
    --login-ink: #0f172a;
    --login-muted: #64748b;
    --login-line: #dbe3ee;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    background:
        radial-gradient(1200px 600px at 90% 10%, rgba(15, 118, 110, 0.08), transparent 55%),
        linear-gradient(165deg, #f4f7fb 0%, #eef3f8 48%, #f8fafc 100%);
    overflow: hidden;
}

.right-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.right-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    animation: loginOrbFloat 12s ease-in-out infinite;
}

.right-orb-a {
    width: 280px;
    height: 280px;
    top: -60px;
    right: -40px;
    background: rgba(13, 148, 136, 0.22);
}

.right-orb-b {
    width: 320px;
    height: 320px;
    left: -80px;
    bottom: 8%;
    background: rgba(37, 99, 235, 0.12);
    animation-delay: -4s;
}

.right-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

@keyframes loginOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(12px, -18px, 0) scale(1.05); }
}

.form-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: clamp(28px, 3.5vw, 40px);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 18px 48px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    animation: loginFormIn 0.55s ease both;
}

@keyframes loginFormIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-box .header {
    text-align: left;
    margin-bottom: 28px;
}

.form-box .header .brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--login-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.form-box .header .brand-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--login-accent-strong);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.form-box .header h1 {
    font-family: "Segoe UI Variable Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--login-ink);
    margin-bottom: 10px;
}

.form-box .header .subtitle {
    color: var(--login-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.form-box .header .demo {
    margin-top: 12px;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    color: #9a3412;
    font-size: 12px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.field input.layui-input,
.field input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--login-line);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #fff;
    color: var(--login-ink);
}

.field input::placeholder {
    color: #94a3b8;
}

.field input:hover {
    border-color: #c5d0de;
}

.field input:focus {
    border-color: var(--login-accent-strong);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.field .input-wrap {
    position: relative;
}

.field .input-wrap.has-leading input {
    padding-left: 44px;
}

.field .input-wrap input {
    padding-right: 44px;
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.field-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.field .input-wrap:focus-within .field-icon {
    color: var(--login-accent);
}

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    padding: 4px;
}

.toggle-pw:hover {
    color: var(--login-ink);
}

.toggle-pw svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    align-items: center;
}

.validateImg {
    width: 100%;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--login-line);
    cursor: pointer;
    background: #fff;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.row.meta-row {
    margin-top: 4px;
    margin-bottom: 22px;
}

.row .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.row .remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--login-accent);
    cursor: pointer;
}

.meta-hint {
    font-size: 12px;
    color: #94a3b8;
}

.row a {
    font-size: 14px;
    font-weight: 500;
    color: var(--login-accent);
    text-decoration: none;
}

.row a:hover {
    text-decoration: underline;
}

.hover-btn {
    position: relative;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #0891b2 100%);
    cursor: pointer;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(13, 148, 136, 0.34);
}

.hover-btn .label {
    display: inline-block;
    transition: all 0.3s;
    color: #fff;
}

.hover-btn .overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #115e59 0%, #0f766e 50%, #0e7490 100%);
    color: #fff;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.hover-btn:hover .label {
    transform: translateX(36px);
    opacity: 0;
}

.hover-btn:hover .overlay {
    opacity: 1;
}

.divider {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #6b7280;
}

.divider a {
    color: #111;
    font-weight: 500;
    text-decoration: none;
}

.divider a:hover {
    text-decoration: underline;
}

.arrow-icon {
    width: 16px;
    height: 16px;
}

@media (max-width: 1024px) {
    body {
        height: auto;
        overflow: auto;
    }

    .page {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .left {
        padding: 24px 16px 0;
    }

    .characters-wrap {
        height: 220px;
    }

    .characters {
        transform: scale(0.45);
        transform-origin: bottom center;
    }

    .right {
        padding: 20px 16px 56px;
        background: #f4f7fb;
    }

    .form-box {
        padding: 24px 20px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    }

    .form-box .header {
        margin-bottom: 22px;
        text-align: left;
    }

    .form-box .header h1 {
        font-size: 26px;
    }

    .captcha-row {
        grid-template-columns: 1fr 108px;
    }
}

.footer {
    left: 0;
    bottom: 0;
    color: #fff;
    width: 100%;
    position: fixed;
    text-align: center;
    line-height: 30px;
    padding-bottom: 10px;
    text-shadow: #000 0.1em 0.1em 0.1em;
    font-size: 14px;
}

.footer a, .footer span {
    color: #fff;
}

.padding-5 {
    padding: 5px !important;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #8a9399;
  font-size: 12px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(20,40,30,.12);
}
.sso-login-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sso-login-btn,
.wework-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(7, 193, 96, .35);
  background: #f3fbf6;
  color: #07c160;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: .15s ease;
  box-sizing: border-box;
}
.sso-login-btn.is-oidc {
  border-color: rgba(47, 84, 235, .35);
  background: #f0f5ff;
  color: #2f54eb;
}
.sso-login-btn.is-wework:hover,
.wework-login-btn:hover {
  background: #e8f8ef;
  border-color: #07c160;
  color: #06ad56;
}
.sso-login-btn.is-oidc:hover {
  background: #e6edff;
  border-color: #2f54eb;
  color: #1d39c4;
}
.sso-force-hint {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0f5ff;
  border: 1px solid #d6e4ff;
  color: #1d39c4;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.wework-login-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  font-size: 13px;
  line-height: 1.5;
}
