/* ==================== 管理員登入卡片 (Modal) - 兔兔網風格 ==================== */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* 更深的黑色背景 */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.admin-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.admin-modal-card {
    background: #1e1e1e;
    /* 深灰色卡片 */
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 360px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-modal-overlay.active .admin-modal-card {
    transform: translateY(0);
}

/* 標頭區域 */
.admin-header {
    text-align: center;
}

.admin-modal-title {
    font-size: 1.35rem;
    color: #ffffff;
    margin: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.admin-modal-subtitle {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

/* 表單區域 */
.admin-body {
    text-align: left;
}

.admin-label {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.admin-password-input {
    width: 100%;
    background: #111;
    /* 輸入框更深 */
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 1rem;
}

.admin-password-input::placeholder {
    color: #555;
    font-size: 0.85rem;
}

.admin-password-input:focus {
    border-color: #555;
}

/* 錯誤訊息 */
.admin-error-msg {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    display: none;
}

/* 橘色按鈕 */
.admin-submit-btn {
    width: 100%;
    background: #1e90ff;
    /* 兔兔雲儲藍 */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.admin-submit-btn:hover {
    background: #0077e6;
}

.admin-submit-btn:active {
    transform: scale(0.98);
}

/* 底部連結 */
.admin-footer {
    text-align: center;
    margin-top: -0.5rem;
}

.admin-back-link {
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.admin-back-link:hover {
    color: #999;
}

/* 關閉按鈕 (右上角) */
.admin-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #444;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.admin-close-btn:hover {
    color: #888;
}