/* ===================================
   login.css — 登录页 + povex 仪表盘
   =================================== */

/* ============ 登录页 ============ */
.login-overlay {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.login-overlay.fade-out { opacity: 0; pointer-events: none; }

.login-bg {
    position: absolute; inset: 0;
    background: linear-gradient(155deg, #1a1a2e 0%, #16213e 40%, #2d1b3e 100%);
}

.login-card {
    position: relative; z-index: 1;
    width: 90%; max-width: 380px;
    padding: 40px 32px 32px;
    background: rgba(255,255,255,0.06);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}
.login-icon { font-size: 3rem; margin-bottom: 8px; }
.login-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.6rem; font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.login-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
}
.login-field {
    margin-bottom: 14px;
    text-align: left;
}
.login-field label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}
.login-field input {
    width: 100%; padding: 11px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.95rem; font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.25s;
}
.login-field input:focus { border-color: rgba(255,183,197,0.6); }
.login-field input::placeholder { color: rgba(255,255,255,0.25); }

.login-error {
    color: #ff6b7a;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.82rem;
    min-height: 22px;
    margin: 4px 0;
}
.login-btn {
    width: 100%; padding: 12px;
    border: none; border-radius: 12px;
    background: linear-gradient(135deg, #FFB7C5, #C7CEEA);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255,183,197,0.3);
    transition: all 0.25s ease;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,183,197,0.45);
}
.login-btn:active { transform: scale(0.97); }

/* ============ povex 仪表盘 ============ */
.dash-overlay {
    position: fixed; inset: 0; z-index: 150;
    display: flex; align-items: center; justify-content: center;
}
.dash-bg {
    position: absolute; inset: 0;
    background: linear-gradient(155deg, #0f0c1a 0%, #1a1030 40%, #0d1829 100%);
}

.dash-panel {
    position: relative; z-index: 1;
    width: 90%; max-width: 600px; max-height: 88vh;
    display: flex; flex-direction: column;
    padding: 0;
    background: rgba(255,255,255,0.05);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    overflow: hidden;
}

.dash-panel-top {
    flex-shrink: 0;
    padding: 28px 28px 0;
}

.dash-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 28px;
    min-height: 0;
}
.dash-panel-body::-webkit-scrollbar { width: 5px; }
.dash-panel-body::-webkit-scrollbar-track { background: transparent; }
.dash-panel-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.dash-panel-foot {
    flex-shrink: 0;
    padding: 12px 28px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.dash-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem; font-weight: 800;
    color: #fff; text-align: center;
    margin-bottom: 4px;
}
.dash-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-bottom: 20px;
}

.dash-tabs {
    display: flex; gap: 8px;
    margin-bottom: 18px;
}
.dash-tab {
    flex: 1;
    padding: 10px 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}
.dash-tab:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); }
.dash-tab.active {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,183,197,0.4);
    color: #FFB7C5;
}

.dash-tab-panel { min-height: 60px; }

.dash-section {
    margin-bottom: 20px;
}
.dash-section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem; font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dash-list { display: flex; flex-direction: column; gap: 6px; }
.dash-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    position: relative;
}
.dash-item-del {
    width: 24px; height: 24px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.3);
    font-size: 0.65rem;
    cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
}
.dash-item:hover .dash-item-del { opacity: 1; }
.dash-item-del:hover { background: rgba(255,107,122,0.3); color: #ff6b7a; }
.dash-icon { font-size: 1.1rem; flex-shrink: 0; }
.dash-text {
    flex: 1;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem; font-weight: 600;
    color: rgba(255,255,255,0.8);
}
.dash-note {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    max-width: 200px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-empty {
    text-align: center; padding: 12px 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.2);
}

.dash-logout-btn {
    display: block; margin: 20px auto 0;
    padding: 8px 24px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem; font-weight: 600;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}
.dash-logout-btn:hover { border-color: rgba(255,107,122,0.4); color: #ff6b7a; }
