/* 登入／忘記密碼頁共用樣式（login.php、forgot_password.php） */

.auth-page #header {
    padding: 3.5em 16px 3em;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8f4 100%);
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e3ebe5;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(20, 60, 30, .10);
    padding: 28px 28px 24px;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    color: #33413a;
}

.auth-card__head {
    margin-bottom: 20px;
    text-align: center;
}
.auth-card__title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 800;
    color: #1f2d24;
    letter-spacing: .02em;
}
.auth-card__sub {
    margin: 4px 0 0;
    font-size: .85em;
    color: #72817a;
}

/* 欄位 */
.auth-field {
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .85em;
    font-weight: 700;
    color: #3c4a42;
}
.auth-card .auth-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #cdd8d1;
    border-radius: 10px;
    background: #fafcfb;
    font-size: 16px;
    line-height: 46px;
    color: #1f2d24;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-card .auth-input::placeholder {
    color: #a3b0a8;
}
.auth-card .auth-input:focus {
    outline: 0;
    border-color: #239738;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(35, 151, 56, .15);
}
.auth-card .auth-input--code {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5em;
    padding-left: calc(14px + .5em);
}

/* 密碼欄 + 顯示／隱藏 */
.auth-pw {
    position: relative;
}
.auth-card .auth-pw .auth-input {
    padding-right: 64px;
}
.auth-card .auth-pw-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 4px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #239738 !important;
    font-size: .8em;
    font-weight: 700;
    line-height: 1.6;
}
.auth-card .auth-pw-toggle:hover {
    background: #eef7f0;
}

/* 按鈕 */
.auth-card .auth-btn {
    display: inline-block;
    height: 46px;
    padding: 0 28px;
    border: 1px solid #239738;
    border-radius: 10px;
    background: #239738;
    color: #fff !important;
    font-size: 1em;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}
.auth-card .auth-btn:hover {
    background: #1e8231;
    box-shadow: 0 4px 12px rgba(35, 151, 56, .25);
}
.auth-card .auth-btn--block {
    display: block;
    width: 100%;
}
.auth-card .auth-btn--outline {
    background: #fff;
    color: #239738 !important;
}
.auth-card .auth-btn--outline:hover {
    background: #eef7f0;
    box-shadow: none;
}

/* 忘記密碼（左）＋送出（右）同一列 */
.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}
.auth-link {
    color: #239738;
    font-size: .9em;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.auth-link:hover {
    text-decoration: underline;
}
.auth-card button.auth-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #239738 !important;
    font-size: .9em;
    line-height: inherit;
}

/* 訊息 */
.auth-alert {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .9em;
    line-height: 1.6;
}
.auth-alert--error {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #b3261e;
}
.auth-alert--ok {
    background: #e8f5e9;
    border: 1px solid #c3e3c6;
    color: #1b5e20;
}

.auth-hint {
    margin-top: 14px;
    font-size: .82em;
    line-height: 1.7;
    color: #72817a;
}

/* 步驟指示 */
.auth-steps {
    display: flex;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.auth-steps li {
    position: relative;
    flex: 1;
    text-align: center;
    font-size: .78em;
    font-weight: 700;
    color: #9aa8a0;
    counter-increment: step;
}
.auth-steps li::before {
    content: counter(step);
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #e6ece8;
    color: #7d8b83;
    font-size: 13px;
    line-height: 28px;
    position: relative;
    z-index: 1;
}
.auth-steps li + li::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: #e6ece8;
}
.auth-steps li.is-active {
    color: #239738;
}
.auth-steps li.is-active::before {
    background: #239738;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(35, 151, 56, .15);
}
.auth-steps li.is-done {
    color: #239738;
}
.auth-steps li.is-done::before {
    content: '✓';
    background: #d6eedb;
    color: #239738;
}
.auth-steps li.is-done::after,
.auth-steps li.is-active::after {
    background: #9fd3aa;
}

/* 目前帳號 */
.auth-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f3f8f4;
    font-size: .9em;
}
.auth-account span {
    color: #72817a;
}
.auth-account strong {
    color: #1f2d24;
}

.auth-gen-hint {
    margin-top: 8px;
    font-size: .82em;
    line-height: 1.6;
    color: #1b5e20;
}

.auth-footer-links {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #edf1ee;
    text-align: center;
    font-size: .9em;
    color: #b0bbb4;
}
.auth-footer-links form {
    display: inline;
}

.auth-banner {
    max-width: 720px;
    margin: 28px auto 0;
}
.auth-banner img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

@media (max-width: 480px) {
    .auth-page #header {
        padding: 2.2em 16px 2em;
    }
    .auth-card {
        padding: 22px 18px 20px;
        border-radius: 14px;
    }
}
