/* ==================== 青春暖色系注册样式 ==================== */

* {
    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%;
}

.orb-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #fecaca 0%, transparent 70%);
    bottom: 15%;
    right: 20%;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #fef3c7 0%, transparent 70%);
    top: 50%;
    left: 5%;
}

@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; }
}

/* 注册卡片 */
.loginCard {
    position: relative;
    width: 440px;
    padding: 40px 40px;
    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: 30px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 10px;
    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: 22px;
    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: 5px;
}

.subtitle {
    font-size: 13px;
    color: rgba(217, 119, 6, 0.7);
    letter-spacing: 3px;
}

/* 表单字段区域 */
.form-fields {
    margin-bottom: 25px;
}

/* 输入框组 */
.input-group {
    position: relative;
    margin-bottom: 18px;
}

.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: 14px 20px 14px 52px;
    background: #fffbeb;
    border: 2px solid #fed7aa;
    border-radius: 14px;
    color: #78350f;
    font-size: 14px;
    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;
}

/* 错误消息 */
#error-message {
    color: #dc2626;
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}

/* 提交按钮 */
.submit-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #fb923c 0%, #f472b6 50%, #fbbf24 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    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);
}

.submit-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;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(251, 146, 60, 0.4);
    background-position: 100% 0;
}

.submit-button:hover::before {
    left: 100%;
}

/* 登录链接 */
.login-link {
    text-align: center;
    color: #92400e;
    font-size: 14px;
}

.login-link span {
    margin-right: 6px;
}

.login-link a {
    color: #ea580c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 4px;
}

.login-link a: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: 92%;
        padding: 30px 20px;
    }
    .corner-decoration {
        display: none;
    }
}

/* 隐藏原元素 */
.a-div, .img-code, .img-username, .img-account, .img-passwd, .img-Email {
    display: none;
}

/* 原有输入框样式（兼容） */
.input-code, .input-username, .input-account, .input-passwd, .input-Email {
    display: none;
}