/* 引入梦幻字体 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400&display=swap');

:root {
    --bg-deep: #050a14;
    --bg-light: #0f1c38;
    --accent: #bd00ff; /* 注册页用紫色调区分，或者保持青色也可以，这里用微紫营造神秘感 */
    --accent-glow: #00f2ff; /* 混合一点青色光晕 */
    --text-color: #e0f7fa;
    --glass-bg: rgba(11, 23, 48, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at bottom, var(--bg-light), var(--bg-deep));
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 让鼠标事件穿透画布作用于页面 */
}

.auth-wrapper {
    position: relative;
    z-index: 10;
}

/* 玻璃卡片 */
.glass-card {
    width: 380px;
    padding: 40px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px); /* 更强的模糊 */
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
    text-align: center;
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 标题样式 */
.logo {
    font-family: 'Cinzel', serif;
    font-size: 2.5em;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, var(--accent-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(189, 0, 255, 0.3);
    letter-spacing: 3px;
}

.subtitle {
    font-size: 0.85em;
    opacity: 0.6;
    margin-top: 5px;
    margin-bottom: 35px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 输入框样式 */
.input-group {
    position: relative;
    margin-bottom: 30px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: none;
    outline: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s ease all;
}

/* 浮动标签动画 */
.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -16px;
    font-size: 12px;
    color: var(--accent-glow);
}

/* 底部发光条 */
.input-group .bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--accent-glow));
    transition: 0.4s;
    box-shadow: 0 0 8px var(--accent);
}

.input-group input:focus ~ .bar,
.input-group input:valid ~ .bar {
    width: 100%;
}

/* 注册按钮 */
.btn-submit {
    position: relative;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, transparent 0%, rgba(189, 0, 255, 0.1) 50%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.4s;
    border-radius: 4px;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(189, 0, 255, 0.4);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none;
}

/* 底部链接 */
.footer {
    margin-top: 25px;
}

.link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 12px;
    transition: 0.3s;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.link:hover {
    color: var(--accent-glow);
    border-bottom-color: var(--accent-glow);
}