/* =============================
   深色科技風登入頁 CSS
   ============================= */
* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "Noto Sans TC", sans-serif;
    background-color: #121212; /* 深色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* 確保垂直置中 */
    margin: 0;
    padding: 20px; /* 手機版邊距 */
}

/* 登入卡片容器 */
.card {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 16px;
    /* 微微的陰影 + 科技感藍色邊框 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(120, 180, 255, 0.15);
    width: 100%;
    max-width: 400px; /* 電腦版最大寬度 */
    text-align: center;
}

/* 標題 */
h1 {
    font-size: 24px;
    margin: 0 0 10px;
    color: #7dc4ff; /* 科技藍標題 */
    font-weight: 600;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}

/* 表單元素 */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #000; /* 輸入框全黑 */
    color: #fff;
    font-size: 16px; /* 手機上打字比較舒服的大小 */
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: #2382ff;
    box-shadow: 0 0 0 3px rgba(35, 130, 255, 0.2);
}

/* 登入按鈕 */
button {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #2382ff;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    letter-spacing: 1px;
}

button:hover {
    background: #1b6cdb;
    box-shadow: 0 0 10px rgba(35, 130, 255, 0.4);
}

button:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

/* 訊息提示 */
.error {
    margin-top: 20px;
    font-size: 14px;
    color: #ff6b6b;
    min-height: 20px;
}

.success {
    margin-top: 20px;
    font-size: 14px;
    color: #4cd964;
}

/* RWD 手機優化 */
@media screen and (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    h1 {
        font-size: 20px;
    }
}