.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-layout .site-header,
.auth-layout .footer-box {
    flex-shrink: 0;
}

.auth-page {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    padding: 43px 60px;
    position: relative;
    background: linear-gradient(90deg, #1F081D 0%, #070714 48%, #09183A 100%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.auth-glow {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(60px);
}

.auth-glow--pink {
    width: 500px;
    height: 500px;
    left: -100px;
    top: -180px;
    background: rgba(241, 43, 158, 0.12);
}

.auth-glow--blue {
    width: 540px;
    height: 540px;
    right: -80px;
    top: -220px;
    background: rgba(52, 98, 255, 0.15);
}

.auth-glow--blue-soft {
    background: rgba(52, 98, 255, 0.12);
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 456px;
    padding: 28px 32px;
    background: rgba(10, 9, 21, 0.90);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border-radius: 24px;
    outline: 1px rgba(255, 255, 255, 0.13) solid;
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
}

.auth-card--register {
    background: linear-gradient(90deg, rgba(32, 13, 34, 0.96) 0%, rgba(8, 10, 25, 0.96) 100%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    outline-color: rgba(255, 255, 255, 0.15);
    gap: 16px;
}

.auth-card-head {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.auth-title {
    margin: 0;
    color: #fff;
    font-size: 28px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 34px;
}

.auth-card--register .auth-title {
    font-size: 30px;
    line-height: 36px;
}

.auth-subtitle {
    color: #9D97AE;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
}

.auth-card--register .auth-subtitle {
    color: #A8A1B6;
}

.auth-field {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.auth-label {
    color: #E0DDE8;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
}

.auth-card--register .auth-label {
    color: #E5E2EB;
}

.auth-input-wrap {
    align-self: stretch;
    height: 48px;
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border-radius: 12px;
    outline: 1px rgba(255, 255, 255, 0.16) solid;
    outline-offset: -1px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.auth-input-wrap.is-error {
    outline-color: #FF4A5C;
}

.auth-card--register .auth-input-wrap {
    height: 54px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    outline-color: rgba(255, 255, 255, 0.18);
}

.auth-card--register .auth-input-wrap.is-error {
    outline-color: #FF4A5C;
}

.auth-input {
    width: 100%;
    height: 100%;
    padding: 0 16px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    outline: none;
    box-sizing: border-box;
}

.auth-card--register .auth-input {
    padding: 0 18px;
}

.auth-input::placeholder {
    color: #746E85;
}

.auth-input-wrap--password .auth-input {
    padding-right: 48px;
}

.auth-error {
    margin: 0;
    color: #FF5C6E;
    font-size: 12px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 18px;
}

.auth-error[hidden] {
    display: none;
}

.auth-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-eye img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.auth-submit {
    align-self: stretch;
    height: 48px;
    border: none;
    background: #F12B9E;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    cursor: pointer;
}

.auth-submit.is-loading,
.auth-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.auth-submit.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-submit-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes auth-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-card--register .auth-submit {
    height: 54px;
    border-radius: 14px;
    font-size: 16px;
    line-height: 22px;
}

.auth-footer {
    width: 100%;
    min-height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.auth-card--register .auth-footer {
    min-height: 36px;
}

.auth-footer-text {
    color: #9790A6;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
}

.auth-footer-link {
    color: #F12B9E;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
}

.auth-card--register .auth-footer-link {
    color: #F160B1;
}

.auth-footer-link:hover {
    opacity: 0.85;
}

@media (max-width: 767px) {
    .auth-page {
        padding: 32px 16px;
    }

    .auth-card {
        width: 100%;
        padding: 24px 20px;
    }
}
