@charset "UTF-8";
/* tn_login WCAG 2.2 AAA 覆寫：只作用在 .tn-login 範圍內，不影響佈景其他區塊 */

/* 1.4.6 對比 ≥ 7:1（白字/黑字已驗算） */
.tn-login .btn-primary  { color: #fff; background-color: #0a3d91; border-color: #0a3d91; } /* 10.05 */
.tn-login .btn-success  { color: #fff; background-color: #0f5132; border-color: #0f5132; } /* 9.36 */
.tn-login .btn-danger   { color: #fff; background-color: #8b0000; border-color: #8b0000; } /* 10.01 */
.tn-login .btn-warning  { color: #000; background-color: #ffc107; border-color: #ffc107; } /* 12.88 */
.tn-login .btn-primary:hover, .tn-login .btn-primary:focus { color: #fff; background-color: #08306f; border-color: #08306f; }
.tn-login .btn-success:hover, .tn-login .btn-success:focus { color: #fff; background-color: #0b3d26; border-color: #0b3d26; }
.tn-login .btn-danger:hover,  .tn-login .btn-danger:focus  { color: #fff; background-color: #660000; border-color: #660000; }
.tn-login .btn-warning:hover, .tn-login .btn-warning:focus { color: #000; background-color: #e0a800; border-color: #e0a800; }
.tn-login .btn-login    { color: #0a3d91; background-color: #fff; border: 2px solid #0a3d91; }

.tn-login .alert-info    { color: #055160; background-color: #cff4fc; border-color: #055160; } /* 7.65 */
.tn-login .alert-success { color: #0b3d26; background-color: #d4edda; border-color: #0b3d26; } /* 9.9 */
.tn-login a:not(.btn)    { color: #0a3d91; text-decoration: underline; }                      /* 1.4.1 不只靠顏色 */
.tn-login .tn-note       { color: #7a2e0e; }   /* 9.44 */
.tn-login .tn-old        { color: #4d4d4d; }   /* 8.45 */
.tn-login .tn-bad        { color: #8b0000; font-weight: bold; }
.tn-login .tn-good       { color: #0a3d91; font-weight: bold; }

/* 2.5.5 目標尺寸 ≥ 44×44 */
.tn-login .btn,
.tn-login .form-control,
.tn-login .form-select   { min-height: 44px; min-width: 44px; }
.tn-login input[type=checkbox] { width: 24px; height: 24px; margin: 10px; }
.tn-login .tn-check-label { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; cursor: pointer; }

/* 2.4.13 焦點外觀：≥ 2px、與周圍對比 ≥ 3:1 */
.tn-login a:focus-visible,
.tn-login button:focus-visible,
.tn-login input:focus-visible,
.tn-login select:focus-visible,
.tn-login textarea:focus-visible,
.tn-login summary:focus-visible,
.tn-login [tabindex]:focus-visible { outline: 3px solid #000; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }

/* 1.4.8 / 1.4.12 文字可讀、可調整間距 */
.tn-login { line-height: 1.6; }
.tn-login .tn-scroll { max-height: 10em; overflow: auto; }
.tn-login details summary { cursor: pointer; min-height: 44px; display: list-item; padding: .5em 0; }

/* BS4 / BS5 通用的螢幕閱讀器專用文字 */
.tn-login .tn-sr {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .tn-login * { transition: none !important; animation: none !important; }
}
