/* 宇宙星空背景动画 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) linear infinite;
    opacity: 0;
    box-shadow: 0 0 4px #fff;
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, white, transparent);
    animation: shoot 3s linear infinite;
    transform: rotate(-45deg);
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes shoot {
    0% { transform: translateX(-100%) translateY(0) rotate(-45deg); opacity: 1; }
    100% { transform: translateX(200%) translateY(-300%) rotate(-45deg); opacity: 0; }
}

/* 主题样式 */
:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #818cf8;
    --text-color: #e2e8f0;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(15, 23, 42, 0.6);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    overflow: hidden;
    background: #020617;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(99, 102, 241, 0.2);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.5),
        transparent
    );
    animation: shimmer 2s infinite;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: float 6s ease-in-out infinite;
}

.logo i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    font-size: 1.8em;
    color: var(--text-color) !important;
    margin: 0;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-text {
    font-size: 0.85em;
    color: var(--text-color) !important;
    opacity: 0.7;
    margin-top: 5px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--text-color) !important;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-weight: 500;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.auth-footer a {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 1.5em;
    }
}

/* 添加星环和星球样式 */
.planet {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4f46e5, #6366f1);
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.3),
        inset -20px -20px 50px rgba(0, 0, 0, 0.4);
    animation: rotatePlanet 30s linear infinite;
    z-index: 0;
}

.planet::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: rotateRing 20s linear infinite;
}

.planet::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: rotateRing 25s linear infinite reverse;
}

.planet-small {
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #818cf8, #c7d2fe);
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.3);
    animation: floatPlanet 15s ease-in-out infinite;
    z-index: 0;
}

/* 添加星云效果 */
.nebula {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle at center,
        rgba(99, 102, 241, 0.2) 0%,
        rgba(99, 102, 241, 0.1) 30%,
        transparent 70%
    );
    filter: blur(40px);
    animation: pulseNebula 10s ease-in-out infinite;
    z-index: 0;
}

/* 添加新的动画关键帧 */
@keyframes rotatePlanet {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatPlanet {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

@keyframes pulseNebula {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* 调整警告框样式 */
.alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5 !important;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* 调整输入框间距 */
.form-control {
    margin-bottom: 5px;
}

/* 调整按钮图标间距 */
.btn i {
    margin-right: 8px;
} 