/* =========================================
   輔仁大學招生戰情室 5.0 - 登入頁專屬樣式 (極致莫蘭迪版)
========================================= */

/* --- 1. 背景與排版基底 --- */
.login-body {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, #fffcf9 100%);
    margin: 0;
    overflow: hidden;
    min-height: 100vh;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../assets/gate.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35; /* 剛剛好的透明度，洗掉白內障霧霾 */
    filter: brightness(0.9);
    z-index: -1;
}

/* --- 2. 頂級琉璃材質 (Glass Box) --- */
.glass-box {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(53, 69, 76, 0.25) !important; /* 深灰藍陰影 */
    width: 100%;
    max-width: 500px;
}

/* --- 3. 統一骨幹色：深灰藍 (#35454C) --- */
.title, .login-text, .login-label, .glass-input {
    color: #35454C !important;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
}

.login-label {
    font-size: 20px;
    width: 70px;
    text-align: right;
    margin-right: 1rem;
    margin-bottom: 0;
}

.toggle-password-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    cursor: pointer;
    color: #35454C !important; /* 眼睛圖示換成深灰藍 */
    font-size: 18px;
    z-index: 10;
}

/* --- 4. 輸入框一體成型 --- */
.login-input-row { width: 100%; }
.input-wrapper { flex-grow: 1; position: relative; }

.glass-input {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.password-wrapper .glass-input {
    padding-right: 50px !important;
}
.glass-input:focus {
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(92, 132, 145, 0.3) !important;
    border-color: #5C8491 !important;
}

/* --- 5. 按鈕主次分明法則 --- */
.login-button, .signup-button {
    border-radius: 30px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 18px !important;
    padding: 10px 36px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(53, 69, 76, 0.2);
}

/* 登入按鈕  */
.login-button {
    background-color: #5C8491 !important;
    color: #ffffff !important;
}
.login-button:hover {
    background-color: #35454C !important; /* 懸停變深灰藍 */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(53, 69, 76, 0.35);
}

/* 忘記密碼按鈕  */
.signup-button {
    background-color: #5C8491 !important;
    color: #ffffff !important;
}
.signup-button:hover {
    background-color: #35454C !important; /* 懸停變深灰藍 */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(53, 69, 76, 0.35);
}

.login-button:active, .signup-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(53, 69, 76, 0.2);
}

/* --- 6. 背景裝飾圖與底部文字 --- */
.bg-img {
    position: absolute;
    z-index: 0;
    opacity: 0.6;
}
.bg-img-left { width: 25%; left: 2%; bottom: -5%; }
.bg-img-right { width: 25%; right: 0; bottom: -5%; }

.footer-text p {
    color: #35454C !important; /* 深灰藍 */
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 3px rgba(255, 255, 255, 1);
    transition: all 0.3s ease;
}
.footer-text:hover p {
    color: #5C8491 !important; /* 懸停變中灰藍 */
}

/* --- RWD 手機版響應式微調 --- */
@media (max-width: 576px) {
    .title { font-size: 24px !important; }
    .login-text { font-size: 24px !important; }
    .login-label { font-size: 18px !important; }
    .footer-text p { font-size: 12px !important; }
}