/* ===============================
   忘記密碼 / 重設密碼頁面樣式
   風格：日系、柔和、藍黃色系
================================ */

/* 全頁背景 */
body {
    font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 219, 132, 0.35), transparent 35%),
        radial-gradient(circle at bottom right, rgba(126, 177, 216, 0.35), transparent 35%),
        linear-gradient(135deg, #f7fbff 0%, #eef6fc 45%, #fff8e6 100%);
    color: #2f3a4a;
}

/* 外層置中 */
.password-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

/* 卡片 */
.password-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    padding: 38px 34px;
    box-shadow: 0 18px 45px rgba(54, 95, 130, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.75);
    position: relative;
    overflow: hidden;
}

/* 卡片右上角柔和裝飾 */
.password-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -55px;
    top: -55px;
    background: rgba(255, 207, 92, 0.35);
    border-radius: 50%;
}

/* 卡片左下角柔和裝飾 */
.password-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    left: -50px;
    bottom: -50px;
    background: rgba(92, 151, 191, 0.22);
    border-radius: 50%;
}

/* 讓內容蓋在裝飾圖形上方 */
.password-card > * {
    position: relative;
    z-index: 1;
}

/* 小標籤 */
.page-badge {
    display: inline-block;
    background: #fff4cf;
    color: #9a6a00;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* 標題 */
.password-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #285f8f;
    margin-bottom: 12px;
}

/* 說明文字 */
.password-desc {
    color: #6d7c8f;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 26px;
}

/* 表單 label */
.form-label {
    font-weight: 600;
    color: #40556e;
    margin-bottom: 8px;
}

/* 輸入框 */
.form-control {
    border-radius: 16px;
    border: 1px solid #d7e4ef;
    padding: 12px 15px;
    font-size: 15px;
    background-color: #fbfdff;
    transition: all 0.2s ease;
}

/* 輸入框 focus */
.form-control:focus {
    border-color: #6fa8dc;
    box-shadow: 0 0 0 0.22rem rgba(111, 168, 220, 0.18);
    background-color: #ffffff;
}

/* 小提醒文字 */
.form-text,
.text-muted {
    color: #8191a3 !important;
    font-size: 13px;
}

/* 主要按鈕 */
.btn-password {
    background: linear-gradient(135deg, #4d8fc3, #2f6f9f);
    color: #ffffff;
    border: none;
    border-radius: 18px;
    padding: 12px 18px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 22px rgba(47, 111, 159, 0.25);
    transition: all 0.2s ease;
}

/* 按鈕 hover */
.btn-password:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(47, 111, 159, 0.32);
}

/* 次要連結 */
.back-link {
    color: #2f6f9f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.back-link:hover {
    color: #d49a1f;
    text-decoration: underline;
}

/* 頁面小圖示 */
.password-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff0b8, #d8ecff);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2f6f9f;
    font-size: 28px;
    margin-bottom: 18px;
}

/* 手機版 */
@media (max-width: 576px) {
    .password-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .password-card h3 {
        font-size: 24px;
    }
}