/* ========== 登入彈窗樣式 ========== */

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.login-modal {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c9a962;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.login-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1.1rem;
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-align: center;
    letter-spacing: 0.15em;
    transition: all 0.3s;
}

.login-input:focus {
    outline: none;
    border-color: #c9a962;
    background: rgba(255, 255, 255, 0.08);
}

.login-input::placeholder {
    color: #666;
    letter-spacing: 0.05em;
}

.login-btn {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #0a0a0a;
    background: linear-gradient(135deg, #c9a962, #e8d5a3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.1em;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 98, 0.3);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    min-height: 24px;
}

.login-hint {
    color: #666;
    font-size: 0.8rem;
    margin-top: 20px;
}

/* 載入動畫 */
.login-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(10, 10, 10, 0.3);
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========== 登出按鈕 ========== */

.logout-btn {
    position: fixed;
    top: 200px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    z-index: 9998;
}

.logout-name {
    color: #c9a962;
    font-size: 0.9rem;
}

.logout-btn button {
    background: transparent;
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.logout-btn button:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}
