/* 供應商平台 認證頁共用樣式（登入頁、忘記密碼頁共用）
   版本 B：淺色背景 + 深藍實色卡片（主管核定版，取代原本深色玻璃卡片版） */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Inter', 'Nunito', sans-serif;
    color: #101828;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}
a { text-decoration: none; color: inherit; cursor: pointer; }

.page {
    flex: 1;
    position: relative;
    background: #F4F6F9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.logo-top { position: relative; z-index: 1; margin-bottom: 32px; }
.logo-top img {
    height: 56px;
    width: auto;
}

.env-tag {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #9AA5B1;
    margin-bottom: 8px;
}

.glass-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: #FFFFFF;
    border: 1px solid #D6E2F0;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 4px 16px rgba(16,75,139,.08);
}
.glass-card h2 {
    color: #0C3C6F;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}
.glass-card .desc {
    color: #6B7A8C;
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 28px;
}

.alert { /* 錯誤訊息（登入頁用） */
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    background: #FDEDEC;
    color: #C0392B;
    border: 1px solid #F5C6C0;
}
.alert-success { /* 成功訊息（忘記密碼頁用） */
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    background: #EAF7EF;
    color: #1E7E4B;
    border: 1px solid #C3E8D1;
}
.field-error {
    color: #C0392B;
    font-size: 12px;
    margin-top: 6px;
}

.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #465364;
    margin-bottom: 6px;
    letter-spacing: .02em;
}
.input-wrap { position: relative; }
.input-wrap svg:not(.toggle-pw) {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; stroke: #9AA5B1; pointer-events: none;
}
.field input {
    width: 100%;
    padding: 13px 14px 13px 40px;
    background: #F4F6F9;
    border: 1px solid #D6E2F0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: #1F2937;
    outline: none;
    transition: border-color .15s, background .15s;
}
.field input::placeholder { color: #9AA5B1; }
.field input:focus {
    border-color: #104B8B;
    background: #FFFFFF;
}
/* 蓋掉瀏覽器自動填入帳密時強制套用的樣式 */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1F2937;
    -webkit-box-shadow: 0 0 0px 1000px #F4F6F9 inset;
    box-shadow: 0 0 0px 1000px #F4F6F9 inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #1F2937;
}
.toggle-pw {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    cursor: pointer; width: 17px; height: 17px; stroke: #9AA5B1;
}

.row-between {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 26px; margin-top: 4px;
}
.remember {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: #6B7A8C; cursor: pointer;
}
.remember input { width: 15px; height: 15px; accent-color: #104B8B; }
.forgot { font-size: 12px; font-weight: 600; color: #6B7A8C; }
.forgot:hover { color: #104B8B; }

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #6B7A8C;
}
.back-link:hover { color: #104B8B; }

.btn-primary-glass {
    width: 100%;
    padding: 14px;
    background: #104B8B;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .1s;
    box-shadow: 0 8px 20px -4px rgba(16,75,139,.4);
}
.btn-primary-glass:hover { background: #0C3C6F; }
.btn-primary-glass:active { transform: scale(.98); }

.footer-note {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: #9AA5B1;
}