/* LINGXI Auth System Styles - Fixed Panel + Mask */

/* --- Variables --- */
:root {
    --auth-panel-bg: #ffffff;
    --auth-panel-shadow: 0 8px 32px rgba(0,0,0,0.12);
    --auth-border-radius: 20px;
    --auth-border-color: #e2e8f0;
    --auth-text-primary: #1e293b;
    --auth-text-secondary: #64748b;
    --auth-primary-color: #4f46e5; /* Indigo-600 */
    --auth-primary-hover: #4338ca; /* Indigo-700 */
    --auth-danger-color: #ef4444;
}

/* --- Mask (Overlay) --- */
.auth-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* requested 0.2 opacity */
    backdrop-filter: blur(2px);
    z-index: 999; /* Requested z-index */
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.auth-mask.show {
    display: block;
    opacity: 1;
}

/* --- Login Panel (Fixed Position) --- */
.auth-panel {
    position: fixed;
    bottom: 20px; /* Requested bottom: 20px */
    left: 20px;   /* Requested left: 20px */
    width: 320px;
    background: var(--auth-panel-bg);
    border-radius: var(--auth-border-radius);
    box-shadow: var(--auth-panel-shadow);
    border: 1px solid var(--auth-border-color);
    z-index: 1000; /* Requested z-index */
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: panel-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-panel.show {
    display: flex;
}

@keyframes panel-slide-up {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Header --- */
.auth-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--auth-border-color);
    font-weight: 700;
    color: var(--auth-text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

/* --- Body --- */
.auth-panel-body {
    padding: 24px;
}

/* --- Form Elements --- */
.auth-input-group {
    margin-bottom: 16px;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--auth-border-color);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #f8fafc;
    color: var(--auth-text-primary);
}

.auth-input:focus {
    border-color: var(--auth-primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-btn-primary {
    background: var(--auth-primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.auth-btn-primary:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.auth-btn-outline {
    background: transparent;
    border: 1px solid var(--auth-border-color);
    color: var(--auth-text-secondary);
    margin-top: 12px;
}

.auth-btn-outline:hover {
    background: #f1f5f9;
    color: var(--auth-text-primary);
    border-color: #cbd5e1;
}

/* --- Logged In Menu --- */
.auth-menu-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    color: var(--auth-text-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.1s;
    border-bottom: 1px solid #f1f5f9;
}

.auth-menu-item:last-child {
    border-bottom: none;
}

.auth-menu-item:hover {
    background: #f8fafc;
}

.auth-menu-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 16px;
}

.auth-menu-item.danger {
    color: var(--auth-danger-color);
}
.auth-menu-item.danger i {
    color: var(--auth-danger-color);
}

/* --- User Info Card --- */
.auth-user-card {
    padding: 24px;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
    border-bottom: 1px solid var(--auth-border-color);
}

.auth-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 16px;
    background: #e2e8f0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.auth-user-details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--auth-text-primary);
}

.auth-user-details p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--auth-text-secondary);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}
