* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

.auth-page {
    background-color: #000;
    background-image: url('../images/auth-bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px 12px;
}

.auth-box {
    width: 380px;
    min-width: 320px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 40px 32px;
    border-radius: 18px;
    border: 1px solid rgba(180, 160, 120, 0.25);
    box-shadow: 0 8px 32px rgba(180, 160, 120, 0.1);
}

.auth-box--tall {
    width: 420px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.auth-title {
    text-align: center;
    font-size: 23px;
    color: #f0e6d2;
    margin-bottom: 28px;
    font-weight: 500;
}

.auth-tab {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 26px;
}

.auth-tab a,
.auth-tab span {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    color: #ccc;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: block;
}

.auth-tab a.active,
.auth-tab span.active {
    color: #d8c694;
    border-bottom: 2px solid #d8c694;
}

.auth-item {
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* 仅左侧字段图标，不包含密码切换按钮内的眼睛图标 */
.auth-item > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #d8c694;
    z-index: 1;
    pointer-events: none;
    font-size: 15px;
    line-height: 1;
}

.auth-item input,
.auth-item select,
.auth-item textarea {
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(210, 190, 140, 0.2);
    border-radius: 8px;
    padding-left: 42px;
    padding-right: 12px;
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.auth-item textarea {
    height: auto;
    min-height: 44px;
    padding-top: 12px;
    resize: vertical;
}

.auth-item input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.auth-item input:focus,
.auth-item select:focus,
.auth-item textarea:focus {
    border-color: #d8c694;
    background: rgba(210, 190, 140, 0.1);
}

.auth-item--toggle input {
    padding-right: 44px;
}

.auth-toggle-pwd {
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #d8c694;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.auth-toggle-pwd i {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    font-size: 15px;
    line-height: 1;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #ccc;
    margin: 12px 0 24px;
}

.auth-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.auth-row a {
    color: #d8c694;
    text-decoration: none;
}

.auth-row a:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    height: 45px;
    background: linear-gradient(45deg, #c8a864, #d8c694);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-submit:hover {
    background: #b89854;
}

.auth-tips {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #ccc;
}

.auth-tips a {
    color: #d8c694;
    text-decoration: none;
    font-weight: 500;
}

.auth-tips a:hover {
    text-decoration: underline;
}

.auth-hint {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.auth-msg {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-msg--error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ffb4b4;
}

.auth-msg--success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.35);
    color: #b8f0c8;
}

.auth-msg a {
    color: #d8c694;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 18px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
}

.auth-check input {
    margin-top: 3px;
    accent-color: #d8c694;
}

.auth-check a {
    color: #d8c694;
    text-decoration: none;
}

@media (max-width: 420px) {
    .auth-box {
        width: 100%;
        padding: 32px 22px;
    }
}
