/* ==========================================================================
   Senflare 登录页样式表 - 左右分栏布局
   版本: 3.0.1 | 更新: 2025-12-31
   ========================================================================== */

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../assets/fonts/AlibabaPuHuiTi-3-55-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Alibaba PuHuiTi", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

/* ==================== 全屏背景容器 ==================== */
.login-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background: url('../assets/images/background.jpg') center/cover no-repeat;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 105, 1, 0.85), rgba(255, 133, 52, 0.75));
}

.login-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 25px 50px rgba(0, 0, 0, 0.1);
}

.login-box h1 {
    font-size: 2rem;
    color: #FF6901;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-box .subtitle {
    color: #757575;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* ==================== 登录/注册切换 Tab ==================== */
.login-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.login-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    color: #757575;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.login-tab:hover {
    color: #FF6901;
}

.login-tab.active {
    color: #FF6901;
    border-bottom-color: #FF6901;
}

/* ==================== 表单面板切换 ==================== */
.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #424242;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #212121;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #9e9e9e;
}

.form-group input:focus {
    outline: none;
    background: #fff;
    border-color: #FF6901;
    box-shadow: 0 0 0 3px rgba(255, 105, 1, 0.1);
}


/* ==================== 按钮 ==================== */
.btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #FF6901, #FF8534);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 1, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #E55D00, #FF6901);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 1, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==================== 切换节点 ==================== */
.change-api {
    text-align: right;
    margin-top: 1rem;
}

.change-api-link {
    color: #9e9e9e;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.change-api-link:hover {
    color: #FF6901;
}

/* ==================== 错误提示 ==================== */
.error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}



/* ==================== Toast 提示 ==================== */
.toast {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(39, 201, 63, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(39, 201, 63, 0.3);
    transition: opacity 0.3s ease;
    z-index: 99999;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    display: block;
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
}

.toast.error {
    background: rgba(239, 68, 68, 0.95);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 600px) {
    .login-container {
        padding: 1rem;
    }

    .login-box {
        padding: 1.5rem;
        max-width: 320px;
    }

    .login-box h1 {
        font-size: 1.6rem;
    }
}