/* ==================== 青春暖色系登录样式 ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100vh;
    overflow: hidden;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fef3e2 0%, #fde4d4 50%, #fcefe3 100%);
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    position: relative;
    overflow: hidden;
}

/* 暖色背景层 */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* 柔和网格线 */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(251, 146, 60, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 146, 60, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 温暖光晕 */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #fed7aa 0%, transparent 70%);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.orb-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #fecaca 0%, transparent 70%);
    bottom: 15%;
    right: 20%;
    animation-delay: -4s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #fef3c7 0%, transparent 70%);
    top: 50%;
    left: 5%;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -10px) scale(1.05); }
}

/* 漂浮装饰 */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-particles span {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #fb923c, #fda4af);
    border-radius: 50%;
    opacity: 0.5;
    animation: particleFloat 14s linear infinite;
}

.floating-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-particles span:nth-child(2) { left: 30%; animation-delay: -3s; }
.floating-particles span:nth-child(3) { left: 60%; animation-delay: -6s; }
.floating-particles span:nth-child(4) { left: 80%; animation-delay: -10s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    15% { opacity: 0.6; }
    85% { opacity: 0.6; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* ==================== 青春群像场景 ==================== */
.youth-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 人物群组 */
.people-group {
    position: absolute;
    height: 70%;
    opacity: 0.8;
}

.people-group.left-group {
    left: -30px;
    bottom: 0;
    animation: peopleFloatLeft 12s ease-in-out infinite;
}

.people-group.right-group {
    right: -30px;
    bottom: 0;
    animation: peopleFloatRight 15s ease-in-out infinite;
}

@keyframes peopleFloatLeft {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-15px) translateX(5px); }
}

@keyframes peopleFloatRight {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(-5px); }
}

.person {
    transition: opacity 0.3s ease;
}

.person:hover {
    opacity: 0.2 !important;
}

/* 青春元素装饰 */
.youth-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 星星 */
.star {
    position: absolute;
    width: 24px;
    height: 24px;
    animation: starTwinkle 3s ease-in-out infinite;
}

.star.s1 { top: 12%; left: 8%; animation-delay: 0s; }
.star.s2 { top: 20%; right: 12%; width: 18px; height: 18px; animation-delay: 1s; }
.star.s3 { top: 35%; left: 5%; width: 20px; height: 20px; animation-delay: 2s; }

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

/* 爱心 */
.heart {
    position: absolute;
    width: 22px;
    height: 22px;
    animation: heartBeat 2.5s ease-in-out infinite;
}

.heart.h1 { top: 25%; left: 15%; animation-delay: 0.5s; }
.heart.h2 { top: 15%; right: 18%; animation-delay: 1.5s; width: 18px; height: 18px; }

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

/* 书本 */
.book {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 45%;
    left: 6%;
    animation: bookFloat 6s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
}

/* 音符 */
.music {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 30%;
    right: 8%;
    animation: musicFloat 5s ease-in-out infinite;
}

@keyframes musicFloat {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* 毕业帽 */
.cap {
    position: absolute;
    width: 45px;
    height: 45px;
    bottom: 35%;
    left: 12%;
    animation: capFloat 7s ease-in-out infinite;
}

@keyframes capFloat {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-12px) rotate(-5deg); }
}

/* 气泡文字 */
.bubble {
    position: absolute;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ea580c;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.2);
    animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.85);
}

.bubble.bubble-1 { top: 18%; left: 18%; animation-delay: 0s; }
.bubble.bubble-2 { top: 28%; right: 15%; animation-delay: 1.5s; font-size: 13px; }
.bubble.bubble-3 { top: 40%; left: 8%; animation-delay: 3s; font-size: 12px; }

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* 响应式隐藏 */
@media (max-width: 900px) {
    .people-group { display: none; }
    .book, .cap { display: none; }
}

/* 登录卡片 */
.loginCard {
    position: relative;
    width: 420px;
    padding: 50px 45px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(251, 146, 60, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 20px 50px rgba(251, 146, 60, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    z-index: 10;
    animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
    0% { opacity: 0; transform: translateY(20px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 卡片边框 */
.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, #fb923c, #f472b6, #fbbf24, #fb923c);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0.25;
    animation: borderGlow 5s ease infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 顶部装饰条 */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.5), transparent);
    border-radius: 24px 24px 0 0;
}

/* Logo区域 */
.logo-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #ea580c, #db2777, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 13px;
    color: rgba(217, 119, 6, 0.7);
    letter-spacing: 3px;
}

/* 输入框组 */
.input-group {
    position: relative;
    margin-bottom: 22px;
}

.input-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(217, 119, 6, 0.5);
    transition: all 0.3s ease;
    z-index: 2;
}

.input-group .input-icon svg {
    width: 100%;
    height: 100%;
}

.input-group .input-field {
    width: 100%;
    padding: 16px 20px 16px 52px;
    background: #fffbeb;
    border: 2px solid #fed7aa;
    border-radius: 14px;
    color: #78350f;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group .input-field::placeholder {
    color: #bc8a5f;
}

.input-group .input-field:focus {
    border-color: #fb923c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.1);
}

.input-group .input-field:focus ~ .input-icon {
    color: #ea580c;
    transform: translateY(-50%) scale(1.1);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fb923c, #f472b6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 0 0 14px 14px;
}

.input-group:focus-within .input-line {
    width: 100%;
}

.input-group:focus-within .input-icon {
    color: #ea580c;
}

/* 选项行 */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    color: #92400e;
    font-size: 14px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #fb923c;
}

.checkbox-wrapper label {
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper label:hover {
    color: #ea580c;
}

.forgot-btn {
    background: none;
    border: none;
    color: #c2410c;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.forgot-btn:hover {
    color: #db2777;
    background: rgba(219, 39, 119, 0.1);
}

/* 登录按钮 */
.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #fb923c 0%, #f472b6 50%, #fbbf24 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.3);
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(251, 146, 60, 0.4);
    background-position: 100% 0;
}

.login-button:hover::before {
    left: 100%;
}

/* 注册链接 */
.register-link {
    text-align: center;
    color: #92400e;
    font-size: 14px;
}

.register-link span {
    margin-right: 6px;
}

.login-enroll {
    color: #ea580c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 4px;
}

.login-enroll:hover {
    color: #db2777;
    background: rgba(219, 39, 119, 0.1);
}

/* 角落装饰 */
.corner-decoration {
    position: fixed;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 1;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.corner-decoration.top-left { top: 15px; left: 15px; }
.corner-decoration.top-left::before { width: 35px; height: 35px; background: rgba(251, 146, 60, 0.15); top: 0; left: 0; }
.corner-decoration.top-left::after { width: 18px; height: 18px; background: rgba(244, 114, 182, 0.15); top: 25px; left: 25px; }

.corner-decoration.top-right { top: 15px; right: 15px; }
.corner-decoration.top-right::before { width: 28px; height: 28px; background: rgba(251, 191, 36, 0.15); top: 0; right: 0; }
.corner-decoration.top-right::after { width: 40px; height: 40px; background: rgba(251, 146, 60, 0.1); top: 15px; right: 15px; }

.corner-decoration.bottom-left { bottom: 15px; left: 15px; }
.corner-decoration.bottom-left::before { width: 30px; height: 30px; background: rgba(244, 114, 182, 0.15); bottom: 0; left: 0; }
.corner-decoration.bottom-left::after { width: 22px; height: 22px; background: rgba(251, 191, 36, 0.15); bottom: 20px; left: 20px; }

.corner-decoration.bottom-right { bottom: 15px; right: 15px; }
.corner-decoration.bottom-right::before { width: 40px; height: 40px; background: rgba(251, 146, 60, 0.1); bottom: 0; right: 0; }
.corner-decoration.bottom-right::after { width: 20px; height: 20px; background: rgba(244, 114, 182, 0.12); bottom: 25px; right: 25px; }

/* 响应式 */
@media (max-width: 480px) {
    .loginCard {
        width: 90%;
        padding: 35px 25px;
    }
    .corner-decoration {
        display: none;
    }
}

/* 隐藏原元素 */
.a-div, .img-username, .img-passwd {
    display: none;
}

.captcha-container {
    display: none;
}