/* Login System Styles */

/* Sidebar Button Styling */
.login-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 10px 0; 
    width: 100%; 
    text-decoration: none;
    cursor: pointer;
    margin-top: auto; 
    position: absolute;
    bottom: 10px;
    left: 0px;
    box-sizing: border-box;
    /* 新增：默认隐藏状态 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.1s ease;
}

.sidebar:hover .login-sidebar-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.login-sidebar-btn .menu-text {
    text-align: center;
    flex-grow: 1; 
}

.login-icon, .logout-icon {
    display: none; 
}

.login-sidebar-btn:hover {
    color: #64ffda;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 5px;
}

.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.auth-modal-overlay.active {
    display: flex;
}

.auth-modal {
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 
      0 8px 40px -8px rgba(64,224,255,0.15),  
      inset 0 0 20px rgba(64,224,255,0.15);  
    border: 1px solid rgba(64,224,255,0.3);
    position: relative;
    max-width: 90%;
    width: 350px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    
}


.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #ccd6f6;
    font-size: 1.2rem;
    font-weight: bold;
}

.auth-close-btn {
    background: none;
    border: none;
    color: #8892b0;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.auth-close-btn:hover {
    color: #64ffda;
}

.auth-form-group {
    margin-bottom: 15px;
}


.auth-code-container {
    display: flex;
    gap: 10px;
}

.auth-btn-code, 
.auth-btn-submit {
    --primary-clr: #02ffffb4;
    --secondary-clr: #3498db;
    --glow-clr: rgba(46, 204, 113, 0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 1px;
    background: transparent;
    border: 2px solid var(--primary-clr);
    border-radius: 6px;
    color: #ecf0f1;
    text-transform: uppercase;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 0 8px var(--glow-clr), inset 0 0 4px var(--glow-clr);
}

.auth-btn-code::before,
.auth-btn-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-clr), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.auth-btn-code:hover:not(:disabled),
.auth-btn-submit:hover:not(:disabled) {
    box-shadow: 0 0 12px var(--glow-clr), inset 0 0 8px var(--glow-clr);
    border-color: var(--secondary-clr);
    color: white;
    text-shadow: 0 0 4px white;
    transform: translateY(-2px);
}

.auth-btn-code:hover:not(:disabled)::before,
.auth-btn-submit:hover:not(:disabled)::before {
    left: 100%;
}

.auth-btn-code {
    padding: 0 15px;
    white-space: nowrap;
    font-size: 12px;
    min-width: 90px;
}

.auth-btn-submit {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    font-size: 1rem;
}

.auth-btn-code:disabled,
.auth-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #4a5568;
    color: #718096;
    box-shadow: none;
    --glow-clr: transparent;
}

.auth-message {
    margin-top: 15px;
    font-size: 12px;
    text-align: center;
    min-height: 1.2em;
}

.auth-message.error { color: #ff6b6b; }
.auth-message.success { color: #64ffda; }

