* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.auth-body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 215, 128, 0.38), transparent 24%),
        radial-gradient(circle at right top, rgba(111, 209, 233, 0.28), transparent 26%),
        linear-gradient(135deg, #fff7e8 0%, #ecf9ff 50%, #fdf1ff 100%);
    color: #22313f;
}

.auth-page {
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: min(1180px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 26px 60px rgba(68, 96, 117, 0.16);
}

.auth-art {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.88), transparent 28%),
        linear-gradient(145deg, rgba(255, 247, 214, 0.92), rgba(219, 245, 255, 0.86));
}

.auth-art::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.56));
    pointer-events: none;
}

.auth-brand {
    position: absolute;
    top: 26px;
    left: 28px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #355264;
}

.auth-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #46c9e8, #ffd56e);
    box-shadow: 0 10px 24px rgba(70, 201, 232, 0.28);
    position: relative;
}

.auth-brand-mark::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 8px;
    left: 9px;
    background: #ffffff;
}

.auth-copy {
    position: absolute;
    top: 120px;
    left: 42px;
    z-index: 3;
    max-width: 280px;
}

.auth-copy h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
    color: #2a4759;
}

.auth-copy p {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: #5f7988;
}

.auth-orb {
    position: absolute;
    border-radius: 999px;
}

.auth-orb.orb-a {
    top: 92px;
    right: 44px;
    width: 82px;
    height: 82px;
    background: rgba(255, 211, 104, 0.86);
    box-shadow: 0 0 0 14px rgba(255, 211, 104, 0.16);
}

.auth-orb.orb-b {
    top: 212px;
    left: 58px;
    width: 28px;
    height: 28px;
    background: rgba(100, 204, 232, 0.94);
    box-shadow: 0 0 0 10px rgba(100, 204, 232, 0.14);
}

.auth-orb.orb-c {
    right: -28px;
    bottom: 108px;
    width: 118px;
    height: 118px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(84, 172, 198, 0.18);
}

.auth-character {
    position: absolute;
    right: -26px;
    bottom: 0;
    z-index: 2;
    width: min(390px, 60%);
    max-height: 94%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 28px 36px rgba(79, 119, 137, 0.24));
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.82);
}

.auth-card {
    width: min(100%, 390px);
    padding: 34px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(72, 178, 204, 0.16);
    box-shadow: 0 22px 48px rgba(78, 108, 126, 0.12);
}

.auth-card h2 {
    margin: 0 0 24px;
    font-size: 30px;
    line-height: 1.15;
    color: #243645;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #466170;
    font-size: 13px;
    font-weight: 700;
}

.auth-input {
    width: 100%;
    height: 48px;
    border: 1px solid #d7e7ec;
    border-radius: 14px;
    background: #fbfdfe;
    outline: none;
    padding: 0 15px;
    color: #2b3d4d;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-input:focus {
    border-color: #60cce3;
    box-shadow: 0 0 0 4px rgba(96, 204, 227, 0.16);
    background: #ffffff;
}

.auth-actions {
    margin-top: 24px;
}

.auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #30bdd2, #5ad3ea);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(48, 189, 210, 0.24);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(48, 189, 210, 0.28);
}

.auth-submit[disabled] {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: #6f8390;
    font-size: 13px;
}

.auth-switch a {
    color: #2ca9c5;
    text-decoration: none;
    font-weight: 700;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .auth-art {
        min-height: 290px;
    }

    .auth-copy {
        top: 96px;
        left: 28px;
    }

    .auth-copy h1 {
        font-size: 32px;
    }

    .auth-character {
        width: 250px;
        right: -22px;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 14px;
        align-items: stretch;
    }

    .auth-shell {
        border-radius: 20px;
    }

    .auth-art {
        min-height: 240px;
    }

    .auth-brand {
        top: 18px;
        left: 18px;
    }

    .auth-copy {
        top: 80px;
        left: 18px;
        max-width: 190px;
    }

    .auth-copy h1 {
        font-size: 25px;
    }

    .auth-copy p {
        font-size: 13px;
        margin-top: 10px;
    }

    .auth-character {
        width: 192px;
        right: -24px;
    }

    .auth-panel {
        padding: 18px;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .auth-card h2 {
        font-size: 25px;
        margin-bottom: 20px;
    }
}
