/* UserLogin.css - Fullscreen Glassmorphism (Misty Lavender) */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* 確認整體不要有捲軸 */
    overflow: hidden;
}

/* 滿版背景層 */
.fullscreen-bg {
    /* 以漸層鋪底，背景圖維持原始比例，避免方圖在寬螢幕上被放大裁切 */
    background-color: #efe7fb;
    background-image:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.78), rgba(239, 231, 251, 0.92) 48%, rgba(228, 214, 247, 1) 100%),
        url('../image/login_bg_misty_purple.png');
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: cover, contain;
    /* Webix 會自己給 100% 寬高，這裡我們補充確保不會被其他容器擋住 */
    width: 100% !important;
    height: 100% !important;
    /* 移除 webix 預設的外框 */
    border: none !important;
}



.login-form-glass {
    /* ★ 核心：毛玻璃特效 (Glassmorphism) ★ */
    background: rgba(255, 255, 255, 0.4) !important; /* 透白底色 */
    backdrop-filter: blur(16px); /* 磨砂玻璃模糊效果，數值越高越模糊 */
    -webkit-backdrop-filter: blur(16px); /* Safari 支援 */
    
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5); /* 邊緣強調反光 */
    box-shadow: 0 15px 35px rgba(50, 20, 90, 0.25); /* 深色融合陰影 */
    overflow: visible !important;
}

/* 表單內透明背景修正 */
.login-form-glass .webix_view {
    background: transparent !important;
}

/* 標題區域 */
.glass-header-wrapper {
    background: transparent !important;
}

.glass-header {
    text-align: center;
    margin-bottom: 20px;
    /* 讓文字帶有一點立體感，不被背景混淆 */
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.glass-header h1 {
    font-size: 32px;
    color: #4a148c; /* 深紫色增強對比 */
    margin: 0;
    padding: 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.glass-header p {
    font-size: 15px;
    color: #673ab7;
    margin: 8px 0 0 0;
    font-weight: 500;
}

/* 輸入框優化（毛玻璃內的輸入框應該清晰、半透明） */
.login-form-glass .webix_view.webix_control.webix_el_text input {
    height: 48px !important;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.7); 
    border: 1px solid rgba(209, 196, 233, 0.6);
    border-radius: 12px;
    color: #311b92;
    transition: all 0.3s;
    padding: 0 15px;
    font-weight: 500;
    box-sizing: border-box; /* 確保 padding 不會撐破高度影響到 webix*/
}

.login-form-glass .webix_view.webix_control.webix_el_text input:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #9575cd;
    box-shadow: 0 0 0 4px rgba(149, 117, 205, 0.25);
    outline: none;
}

.login-form-glass .webix_el_text .webix_inp_top_label {
    font-weight: 600;
    color: #4a148c;
    margin-bottom: 8px;
    font-size: 15px;
}

/* 確保輸入框外部的容器有足夠的渲染高度 */
.login-form-glass .webix_el_text {
    line-height: normal !important;
}

/* 登入按鈕 - 使用漂亮的長按鈕設定 */
.glass-login-btn button {
    height: 100% !important; /* 滿版高度避免裁切 */
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #7e57c2 0%, #4527a0 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(69, 39, 160, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.glass-login-btn button:hover {
    background: linear-gradient(135deg, #9575cd 0%, #512da8 100%) !important;
    box-shadow: 0 12px 25px rgba(69, 39, 160, 0.5) !important;
    transform: translateY(-3px) !important; /* 按鈕浮起 */
}

.glass-login-btn button:active {
    transform: translateY(1px) !important; /* 按下時微沉 */
    box-shadow: 0 4px 10px rgba(69, 39, 160, 0.3) !important;
}

/* 錯誤訊息文字 */
.glass-error-msg {
    text-align: center;
    color: #d32f2f;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* 底部版本號 */
.glass-version-wrapper {
    background: transparent !important;
}

.glass-version {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #7e57c2;
    margin-top: 5px;
    opacity: 0.8;
}
