﻿/* 基礎與響應式 RWD 設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body {
    /* 設定本機背景底圖 */
    background-image: url('/static/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

/* 登入卡片設定（整體寬度放大1.5，從 400px 變 600px；內距放大1.5） */
.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 80px 60px; /* 放大1.5 */
    border-radius: 8px; /* 圓角調整 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px; /* 放大1.5 */
    text-align: center;
}

/* 標題（字體大小從 24px 放大1.5） */
h2 {
    color: #004bb1;
    font-size: 36px; /* 放大1.5 */
    font-weight: bold;
    margin-bottom: 45px; /* 放大1.5 */
}

/* 表單群組間距 */
.input-group {
    text-align: left;
    margin-bottom: 30px; /* 放大1.5 */
    position: relative;
}

/* 欄位標籤（字體大小從 14px 放大1.5） */
label {
    display: block;
    color: #555555;
    font-size: 22px; /* 依比例微調 */
    font-weight: bold;
    margin-bottom: 12px; /* 放大1.5 */
}


/* 1. 父容器：用來當作圖標定位的基準錨點（最重要的一步） */
.input-wrapper {
    position: relative; /* 強制所有絕對定位的子元件都離不開這個外框 */
    display: block; /* 改為區塊呈現，避免彈性盒子的子元素換行擠壓 */
    width: 100%;
}
    /* 2. 輸入框設定：右側保留足夠的空間給眼睛圖標 */
    .input-wrapper input {
        width: 100%;
        padding: 7px 36px 7px 33px; /* 右側 padding 調整為 24px，防止文字疊到眼睛 */
        border: 1px solid #e2e8f0;
        border-radius: 4px;
        background-color: #f8fafc;
        font-size: 22px;
        color: #333;
        outline: none;
        transition: all 0.2s;
    }

        .input-wrapper input::placeholder {
            color: #cbd5e1;
        }

/* 欄位聚焦與錯誤狀態 */
.input-wrapper input:focus {
    border-color: #0056d2;
    background-color: #ffffff;
}

.input-wrapper input.error-border {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* 3. 左側鎖頭圖標置中 */
.icon {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 20px;
    pointer-events: none;
}

/* 4. 右側眼睛圖標置中（這次會強制鎖死在 input 內部） */
.eye-icon {
    position: absolute;
    right: 8px; /* 靠右固定在框框內側 8px 處 */
    top: 50%; /* 垂直置中 */
    transform: translateY(-50%); /* 修正置中軸線 */
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* 確保浮在最上層 */
}

    /* 5. SVG 眼睛的實際大小 */
    .eye-icon svg {
        width: 24px;
        height: 24px;
        transition: color 0.2s;
    }

    .eye-icon:hover svg {
        color: #0056d2;
    }

/* 錯誤訊息提示 */
.error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 2px;
    display: none;
}

/* 登入按鈕（高度、字體從 16px 放大1.5） */
.login-btn {
    width: 100%;
    background-color: #0056d2;
    color: white;
    border: none;
    padding: 10px; /* 內距放大1.5 */
    border-radius: 4px; /* 圓角調整 */
    font-size: 32px; /* 依比例微調 */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* 間距放大1.5*/
    margin-top: 15px; /* 間距放大1.5 */
    transition: background-color 0.2s;
}

    .login-btn:hover {
        background-color: #004bb1;
    }

    .login-btn:focus {
        outline: 1px dotted;
    }
.arrow {
    font-size: 30px; /* 放大1.5 */
}
