/**
 * 认证系统样式表
 * 用于登录、注册页面的统一样式
 */

/* 全局玻璃效果样式 */
.glass-panel {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(136, 146, 176, 0.15);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.08);
}

/* 用户信息浮动面板 */
#userInfo {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95), rgba(15, 35, 60, 0.95));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 204, 0.2);
    box-shadow: 0 8px 32px rgba(0, 255, 204, 0.15);
}

#userInfo:hover {
    box-shadow: 0 12px 40px rgba(0, 255, 204, 0.25);
    border-color: rgba(0, 255, 204, 0.3);
}

/* 输入框焦点动画 */
@keyframes inputGlow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 204, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 204, 0.4); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 204, 0.2); }
}

input:focus {
    animation: inputGlow 2s ease-in-out infinite;
}

/* 单选框样式 */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #4b5563;
    border-radius: 50%;
    background: transparent;
    position: relative;
}

input[type="radio"]:checked {
    border-color: #00ffcc;
    background: #00ffcc;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: #0a192f;
    border-radius: 50%;
}

/* 复选框样式 */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #4b5563;
    border-radius: 4px;
    background: transparent;
    position: relative;
}

input[type="checkbox"]:checked {
    border-color: #00ffcc;
    background: #00ffcc;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #0a192f;
    font-weight: bold;
    font-size: 12px;
}

/* 加载动画增强 */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 成功消息样式 */
.message-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* 错误消息样式 */
.message-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* 流动边框效果 */
@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.flowing-border {
    position: relative;
}

.flowing-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #00ffcc, #00b3ff, #00ffcc);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: borderFlow 4s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flowing-border:hover::before {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 640px) {
    #userInfo {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* 暗色主题滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 25, 47, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 204, 0.5);
}
