/* FinInfo 登入頁 — 樣式與 dku.ubddns.org 登入頁一致
 *
 * 來源：`/Web/domou/index.css` 的「登入頁面樣式」區段（同一台主機的 domou 站）。
 * 差異只有兩處（其餘宣告逐字相同）：
 *   1. 背景圖以同源絕對路徑 `/assets/cruise.jpg` 取得（就是 dku 用的同一張圖，
 *      由 apache DocumentRoot 直接提供；不複製一份進 repo）。
 *   2. 補一層 CSS 漸層當後備（原檔的 `background-color: linear-gradient(...)` 是無效宣告，
 *      圖載不到時會變白底白字；本機直連 127.0.0.1:8089 debug 時即為此情況）。
 *      注意：多層 background-image 中**第一層在最上**，所以照片要放第一層。
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    background-color: #f5f5f5;
}

/* ============================================================
   登入頁面樣式
   ============================================================ */
.login-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/cruise.jpg'), linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 半透明遮罩 */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    padding: 28px 26px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    width: 80%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: fadeInUp 0.6s ease-out;
}

.login-container h1 {
    text-align: center;
    font-size: 20px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    margin-bottom: 3px;
}

.tagline {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    margin-bottom: 16px;
}

.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.form-group input {
    padding: 8px 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.35);
}

.btn-login {
    padding: 9px 16px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.demo-hint {
    text-align: center;
    font-size: 12px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 30px 25px;
        max-width: 100%;
        margin: 20px;
    }

    .login-container h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 15px;
    }

    .login-container h1 {
        font-size: 22px;
    }

    .tagline {
        font-size: 13px;
    }

    .form-group input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn-login {
        padding: 10px 15px;
        font-size: 14px;
    }
}
