/* 登录 / 注册 表单样式，沿用模板暗金配色（与 style.css 同一视觉体系） */

.auth-card {
    width: 360px;
    max-width: 92vw;
    margin: 0 auto;
    padding: 26px 30px 30px;
    background-color: rgba(30, 15, 8, 0.86);
    background-image: linear-gradient(to bottom,
        rgba(60, 32, 18, 0.9) 0%,
        rgba(28, 14, 8, 0.92) 100%);
    border: 1.5px solid rgba(200, 162, 78, 0.55);
    border-top-color: rgba(220, 178, 90, 0.85);
    border-radius: 10px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55), 0 0 14px rgba(200, 160, 55, 0.15) inset;
    text-align: center;
}

.auth-title {
    color: rgba(238, 208, 118, 0.96);
    font-size: 22px;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.auth-sub {
    color: rgba(188, 168, 128, 0.7);
    font-size: 12px;
    margin-bottom: 18px;
}

.field {
    position: relative;
    margin-bottom: 14px;
    text-align: left;
}

.field label {
    display: block;
    color: rgba(200, 178, 132, 0.82);
    font-size: 12px;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.field input[type=text],
.field input[type=password],
.field input[type=email] {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    box-sizing: border-box;
    background-color: rgba(20, 10, 6, 0.85);
    border: 1.5px solid rgba(155, 118, 58, 0.6);
    border-radius: 5px;
    color: #f2e4c4;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder { color: rgba(150, 130, 95, 0.5); }

.field input:focus {
    border-color: rgba(228, 194, 88, 0.9);
    box-shadow: 0 0 8px rgba(200, 160, 55, 0.35);
}

.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-row img {
    height: 40px;
    border: 1.5px solid rgba(155, 118, 58, 0.6);
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
}
.captcha-row img:hover { border-color: rgba(228, 194, 88, 0.9); }

.sex-row { display: flex; gap: 18px; align-items: center; color: rgba(200,178,132,0.82); font-size: 13px; }
.sex-row label { display: inline-flex; align-items: center; gap: 5px; margin: 0; cursor: pointer; }

.btn-primary {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #3a1c06;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0.2em;
    font-family: 'Microsoft YaHei', sans-serif;
    background-image: linear-gradient(to bottom, #ffe08a 0%, #f0b64a 55%, #d8933a 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    transition: filter 0.15s, transform 0.1s;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); filter: brightness(0.95); }

/* 让登录/注册页复用模板背景并居中（不用 flex/transform，兼容糖果/IE） */
.container.auth-bg {
    display: block !important;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    text-align: center;
}

.auth-wrap {
    position: absolute;
    left: 0;
    right: 0;
    /* 对齐背景下方暗色横条区域（约半屏偏下） */
    top: 54%;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
}

.auth-card {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    width: 360px;
    max-width: 92%;
    margin: 0 auto;
    vertical-align: top;
    text-align: center;
}

.auth-error {
    background-color: rgba(120, 30, 20, 0.5);
    border: 1px solid rgba(220, 90, 70, 0.6);
    color: #ffcabf;
    border-radius: 5px;
    font-size: 13px;
    padding: 8px 10px;
    margin-bottom: 14px;
}

.auth-msg {
    background-color: rgba(30, 90, 40, 0.4);
    border: 1px solid rgba(90, 200, 110, 0.5);
    color: #cdeecb;
    border-radius: 5px;
    font-size: 13px;
    padding: 8px 10px;
    margin-bottom: 14px;
}

/* 底部链接：不用 flex */
.auth-links {
    margin-top: 16px;
    overflow: hidden;
    font-size: 13px;
    text-align: left;
}
.auth-links a {
    color: rgba(228, 194, 88, 0.9);
    text-decoration: none;
}
.auth-links a:first-child {
    float: left;
}
.auth-links a:last-child {
    float: right;
}
.auth-links a:hover { color: #ffd76e; text-decoration: underline; }

.top-user {
    position: fixed;
    top: 14px;
    right: 20px;
    color: rgba(214, 194, 150, 0.9);
    font-size: 13px;
    z-index: 10;
}
.top-user a { color: rgba(228, 194, 88, 0.9); text-decoration: none; margin-left: 10px; }
.top-user a:hover { color: #ffd76e; text-decoration: underline; }
