/* ===== 登录/注册页 ===== */
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}
.auth-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.auth-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}
.auth-bg-circle.c1 {
    width: 300px; height: 300px;
    background: #ff4458;
    top: -80px; left: -80px;
    animation: float1 8s ease-in-out infinite;
}
.auth-bg-circle.c2 {
    width: 250px; height: 250px;
    background: #667eea;
    bottom: -60px; right: -60px;
    animation: float2 10s ease-in-out infinite;
}
.auth-bg-circle.c3 {
    width: 200px; height: 200px;
    background: #f093fb;
    top: 50%; left: 60%;
    animation: float3 12s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, -40px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-20px, 30px); } }

.auth-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 380px;
}
.auth-logo {
    text-align: center;
    margin-bottom: 16px;
}
.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 20px rgba(255,68,88,0.4);
}
.auth-logo h1 {
    font-size: 32px;
    color: white;
    letter-spacing: 8px;
}
.logo-sub {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    letter-spacing: 2px;
    margin-top: 4px;
}

.auth-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 18px 20px 24px;
}
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 3px;
}
.auth-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}
.auth-tab.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(255,68,88,0.3);
}

.form-group {
    position: relative;
    margin-bottom: 10px;
}
.form-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px 10px 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
}
.form-group input::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus {
    border-color: rgba(255,68,88,0.5);
    background: rgba(255,255,255,0.12);
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
}
.form-group select option {
    background: #1a1a2e;
    color: white;
}
.auth-form .btn-primary { margin-top: 12px; width: 100%; }
.btn-guest {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 10px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.06);
    font-size: 14px;
    font-weight: 600;
}
.tenant-unavailable {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100% - 32px));
    margin: auto;
    padding: 34px 28px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    background: rgba(16,24,40,0.9);
    color: white;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0,0,0,0.3);
}
.tenant-unavailable-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.1);
    color: #ff7b89;
    font-size: 22px;
}
.tenant-unavailable h1 { font-size: 22px; margin-bottom: 10px; }
.tenant-unavailable p { color: rgba(255,255,255,0.68); font-size: 14px; line-height: 1.7; }
.btn-guest:hover { background: rgba(255,255,255,0.12); }

/* 注册上传区域 - 紧凑版 */
.reg-upload-section {
    margin-bottom: 8px;
}
.reg-upload-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}
.reg-upload-label .required {
    color: #ff4458;
    font-weight: 700;
}
.reg-avatar-upload {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin: 0 auto;
    gap: 1px;
}
.reg-avatar-upload i {
    font-size: 16px;
    color: rgba(255,255,255,0.4);
}
.reg-avatar-upload span {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
}
.reg-avatar-upload:hover {
    border-color: rgba(255,68,88,0.6);
    background: rgba(255,68,88,0.08);
}
.reg-avatar-upload.hidden { display: none; }
.reg-avatar-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,68,88,0.5);
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s;
}
.reg-avatar-preview:hover { transform: scale(1.05); }
.reg-avatar-preview.hidden { display: none; }
.reg-album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.reg-album-slot {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px dashed rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}
.reg-album-slot.empty:hover {
    border-color: rgba(255,68,88,0.5);
    background: rgba(255,68,88,0.06);
}
.reg-album-slot.empty i {
    font-size: 16px;
    color: rgba(255,255,255,0.25);
}
.reg-album-slot.filled {
    border: none;
    padding: 0;
}
.reg-album-slot.filled img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.reg-album-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s;
}
.reg-album-slot.filled:hover .reg-album-del { opacity: 1; }
.reg-upload-hint {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 4px;
    margin-bottom: 4px;
}
