@font-face {
    font-family: "Kanit";
    src: url("fonts/Kanit-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Kanit";
    src: url("fonts/Kanit-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
.cph-login {
    margin: 0;
    background: #f5f7f8;
    color: #253b37;
    font-family: "Kanit", Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.cph-login *, .cph-login *::before, .cph-login *::after { box-sizing: border-box; }
.cph-login [hidden] { display: none !important; }
.cph-login button, .cph-login input { font: inherit; }
.cph-login a { color: inherit; }
.cph-login a:focus-visible, .cph-login button:focus-visible, .cph-login input:focus-visible {
    outline: 3px solid #298265;
    outline-offset: 4px;
}
.cph-login .login-page { width: min(440px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 24px; }
.cph-login .page-header { margin-bottom: 24px; text-align: center; }
.cph-login .hospital-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; }
.cph-login .hospital-symbol { display: grid; place-items: center; width: 64px; height: 64px; color: #298265; }
.cph-login .hospital-symbol svg { width: 48px; height: 48px; }
.cph-login .hospital-symbol img { display: block; width: 64px; height: 64px; object-fit: contain; }
.cph-login .brand-name { font-size: 23px; font-weight: 500; }
.cph-login .page-header > p { margin: 4px 0 0; color: #71807b; font-size: 14px; }
.cph-login .signin-panel { padding: 28px 32px; border: 1px solid #e2e7e5; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #263d3410; }
.cph-login .signin-heading { margin-bottom: 24px; text-align: center; }
.cph-login .signin-heading h1 { margin: 0; font-size: 22px; font-weight: 500; }
.cph-login .signin-heading p { margin: 5px 0 0; color: #71807b; font-size: 14px; }
.cph-login .auth-option { margin: 0; text-align: center; }
.cph-login .provider-brand { display: flex; align-items: center; justify-content: center; min-height: 42px; }
.cph-login .provider-brand img { display: block; max-width: 140px; height: 42px; object-fit: contain; }
.cph-login .provider-wordmark { font-size: 24px; font-weight: 500; }
.cph-login .provider-wordmark b { color: #368552; font-weight: 500; }
.cph-login .thaid-wordmark { color: #243e7b; font-size: 27px; font-weight: 500; }
.cph-login .thaid-wordmark > span { color: #bd354e; }
.cph-login .auth-option > p { margin: 7px 0 14px; color: #71807b; font-size: 14px; }
.cph-login .auth-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid transparent; border-radius: 6px; font-size: 16px; font-weight: 400; line-height: 1.6; cursor: pointer; transition: background .15s; }
.cph-login .provider-button { color: #493c1d; background: #f6ca70; border-color: #efc369; }
.cph-login .provider-button:hover { background: #edbf5f; }
.cph-login .thaid-button { color: #fff; background: #298265; border-color: #298265; }
.cph-login .thaid-button:hover { background: #206d54; }
.cph-login .auth-button:disabled, .cph-login .auth-button[aria-disabled="true"] { opacity: .65; cursor: not-allowed; }
.cph-login .auth-button[aria-busy="true"] { cursor: wait; }
.cph-login .button-spinner { display: none; flex-shrink: 0; width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.cph-login .auth-button[aria-busy="true"] .button-spinner { display: block; animation: login-spin .8s linear infinite; }
.cph-login .option-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #8a9691; font-size: 13px; }
.cph-login .option-divider::before, .cph-login .option-divider::after { content: ""; height: 1px; flex: 1; background: #e8edeb; }
.cph-login .signin-note { margin: 24px 0 0; color: #7e8b84; font-size: 12px; text-align: center; }
.cph-login .login-status { margin: 0; color: #65776e; font-size: 14px; text-align: center; }
.cph-login .login-status:not(:empty) { margin-top: 18px; }
.cph-login .page-footer { padding-top: 20px; color: #89958e; font-size: 12px; text-align: center; }
.cph-login .line-notice { margin-bottom: 20px; padding: 16px; border: 1px solid #cee0d2; border-radius: 8px; color: #285b40; background: #eef6ef; }
.cph-login .line-notice strong { font-size: 15px; font-weight: 500; }
.cph-login .line-notice p { margin: 5px 0 0; font-size: 13px; }
.cph-login .notice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.cph-login .notice-link { font-size: 14px; text-underline-offset: 3px; }
.cph-login .copy-link { padding: 6px 10px; color: #285b40; background: #fff; border: 1px solid #bed5c4; border-radius: 5px; font-size: 13px; cursor: pointer; }
.cph-login .copy-status:empty { display: none; }
.cph-login .link-fallback { width: 100%; margin-top: 10px; padding: 8px; border: 1px solid #bed5c4; border-radius: 5px; background: #fff; color: #285b40; font-size: 12px; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
    .cph-login .login-page { padding-top: 24px; }
    .cph-login .page-header { margin-bottom: 20px; }
    .cph-login .signin-panel { padding: 24px; }
}
@media (max-width: 360px) {
    .cph-login .signin-panel { padding: 22px 18px; }
    .cph-login .auth-button { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .cph-login .auth-button { transition: none; }
    .cph-login .auth-button[aria-busy="true"] .button-spinner { animation: none; }
}
