@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');
:root{--ep-blue:#293478;--ep-dark:#16375c;--ep-line:#dce5ef;--ep-muted:#65758b;--ep-gold:#d5ad59}
.ep-auth{margin:0;background:#f4f7fb;color:var(--ep-dark);font:15px/1.65 'Noto Sans Thai',Arial,sans-serif}
.ep-auth *, .ep-dialog *{box-sizing:border-box}.ep-auth a{color:var(--ep-blue);text-decoration:none}.ep-auth a:hover{text-decoration:underline}
.ep-header{max-width:1380px;margin:auto;padding:24px 40px;display:flex;align-items:center;justify-content:space-between;gap:20px}.ep-brand img{display:block;width:290px;max-width:100%;height:auto}.ep-nav{display:inline-flex;align-items:center;gap:16px;padding:10px 20px;border:1px solid var(--ep-line);border-radius:30px;background:#fff;font-weight:600}
.ep-login-layout{max-width:1180px;margin:32px auto 60px;padding:0 36px;display:grid;grid-template-columns:1.15fr 1fr;gap:70px;align-items:center}.ep-eyebrow{font-size:11px;font-weight:700;letter-spacing:.13em;color:#677ca0}.ep-intro h1{font-size:42px;line-height:1.22;letter-spacing:-1.3px;color:var(--ep-blue);margin:14px 0 22px}.ep-intro>p{max-width:490px;color:var(--ep-muted);font-size:17px}.ep-info-card{display:flex;align-items:flex-start;gap:16px;margin-top:25px;padding:20px;border:1px solid #e1e7f0;border-radius:17px;background:rgba(255,255,255,.65)}.ep-info-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;background:#e9eff9;color:var(--ep-blue);border-radius:11px;font-size:22px}.ep-info-card h2{font-size:17px;margin:0 0 6px}.ep-info-card p{font-size:14px;color:var(--ep-muted);margin:0 0 6px}.ep-info-card a{font-size:13px;font-weight:700}.ep-intro-note{padding-top:26px;margin-top:26px;border-top:1px solid var(--ep-line);color:var(--ep-muted);font-size:13px}
.ep-login-card{background:#fff;border:1px solid var(--ep-line);border-radius:25px;padding:38px;box-shadow:0 18px 50px rgba(37,59,93,.07);position:relative;overflow:hidden}.ep-login-card::before{content:'';position:absolute;top:0;left:38px;width:60px;height:4px;background:var(--ep-gold);border-radius:0 0 5px 5px}.ep-login-card h2{font-size:32px;line-height:1.3;margin:12px 0 8px;color:var(--ep-blue)}.ep-muted{color:var(--ep-muted);margin:0 0 28px;font-size:14px}.ep-login-card label,.ep-field label{display:block;font-weight:600;font-size:14px;margin-bottom:8px}.ep-login-card input,.ep-field input,.ep-field select{font:inherit;width:100%;min-height:50px;border:1px solid #d7e0ec;border-radius:11px;padding:12px 14px;background:#fafcfe;color:#17324f;outline:none}.ep-auth input:focus,.ep-auth select:focus{border-color:#4483c7;box-shadow:0 0 0 3px rgba(68,131,199,.12);background:#fff}.ep-login-card input{margin-bottom:22px}.ep-password{position:relative}.ep-password input{padding-right:54px}.ep-password button{position:absolute;right:8px;top:8px;width:36px;height:36px;border:0;background:transparent;color:#65758b;cursor:pointer;display:grid;place-items:center}.ep-password svg{width:22px;height:22px}.ep-primary,.ep-secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:28px;padding:12px 22px;font:600 14px/1.5 'Noto Sans Thai',Arial,sans-serif;cursor:pointer;min-height:46px;text-decoration:none!important}.ep-primary{background:#293478;color:#fff!important;border:1px solid #293478;box-shadow:0 5px 12px rgba(41,52,120,.13)}.ep-primary:hover{background:#1d285e}.ep-secondary{background:#fff;border:1px solid #dce5ef;color:#293478!important}.ep-primary:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.ep-login-submit{width:100%;margin-top:3px;justify-content:space-between}.ep-card-bottom{margin-top:28px;padding-top:22px;border-top:1px solid #edf0f5;font-size:13px;color:var(--ep-muted)}.ep-card-bottom a{font-weight:700}.ep-footer{max-width:1300px;margin:0 auto;padding:22px 36px;border-top:1px solid var(--ep-line);color:var(--ep-muted);font-size:12px;display:flex;justify-content:space-between;gap:15px}
.ep-register-layout{max-width:1380px;margin:20px auto 55px;padding:0 40px}.ep-register-intro{display:flex;justify-content:space-between;gap:22px;align-items:center;margin-bottom:28px}.ep-register-intro h1{font-size:32px;color:var(--ep-blue);line-height:1.3;margin:8px 0}.ep-register-intro p{margin:0;color:var(--ep-muted);font-size:14px}.ep-register-columns{display:grid;grid-template-columns:280px minmax(0,1fr);gap:26px;align-items:start}.ep-register-aside{padding:25px;background:#edf2fa;border:1px solid #dce5f2;border-radius:20px}.ep-register-aside h2{font-size:21px;line-height:1.4;margin:12px 0 20px}.ep-register-aside ol{padding-left:22px;margin:0}.ep-register-aside li{padding:0 0 15px;color:var(--ep-muted);font-size:14px}.ep-register-aside>a{font-size:13px;font-weight:600}.ep-register-form{padding:30px;background:#fff;border:1px solid var(--ep-line);border-radius:22px;box-shadow:0 8px 30px rgba(37,59,93,.04)}.ep-register-form fieldset{border:0;border-bottom:1px solid #e7edf5;padding:0 0 28px;margin:0 0 28px;min-width:0}.ep-register-form legend{display:flex;align-items:center;gap:12px;width:100%;font-weight:700;font-size:20px;padding:0;margin-bottom:24px;color:#293478}.ep-register-form legend span{font-size:12px;background:#edf2fa;color:#293478;display:grid;place-items:center;width:34px;height:34px;border-radius:10px}.ep-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.ep-field{min-width:0}.ep-field select{appearance:auto}.ep-field input:disabled{background:#eff2f6;color:#8a97a8}.ep-register-form h3{font-size:14px;font-weight:600;margin:22px 0 12px}.ep-date-grid{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:12px}.ep-date-grid label{font-weight:400;color:var(--ep-muted);font-size:12px}.ep-radio-row{display:flex;gap:14px;margin-bottom:20px}.ep-radio-row label{display:flex;gap:8px;align-items:center;background:#f5f8fc;border:1px solid #dce5ef;border-radius:10px;padding:10px 14px;cursor:pointer}.ep-auth input[type=radio],.ep-auth input[type=checkbox]{accent-color:#293478;width:18px;height:18px;flex:none;margin:0}.ep-note{margin:22px 0;padding:16px;border:1px solid #eadbbf;border-radius:12px;background:#fff9ef;color:#6f5428;font-size:13px}.ep-note p{margin:6px 0 0}.ep-upload{display:flex;flex-direction:column;gap:10px;padding:22px;border:1px dashed #9aafd0;border-radius:14px;background:#f7faff;margin-top:24px;cursor:pointer}.ep-upload>span{font-size:13px;color:var(--ep-muted)}.ep-upload input{max-width:100%;font:inherit;font-size:13px}.ep-upload input::file-selector-button{border:1px solid #cbd8ea;border-radius:8px;background:#fff;color:#293478;padding:9px 13px;margin-right:12px;cursor:pointer}.ep-test-note:not(:empty){background:#eff6ff;border-radius:12px;padding:14px;margin-top:18px;overflow-wrap:anywhere}.ep-agree{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:var(--ep-muted);margin-bottom:22px}.ep-agree input{margin-top:2px!important}.ep-register-actions>div{display:flex;gap:12px;justify-content:flex-end}.ep-error{background:#fff1f1;border:1px solid #f3cece;border-radius:10px;padding:12px;color:#9a2c2c;font-size:14px}
.ep-dialog{padding:0;border:1px solid #dce5ef;border-radius:20px;width:calc(100% - 32px);max-width:1160px;max-height:calc(100dvh - 32px);color:#17324f;font:14px/1.6 'Noto Sans Thai',Arial,sans-serif;box-shadow:0 25px 90px rgba(7,23,50,.25);overflow:auto}.ep-dialog::backdrop{background:rgba(14,29,52,.6);backdrop-filter:blur(4px)}.ep-modal-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid #e5ebf3}.ep-modal-header h2{font-size:20px;margin:4px 0 0;line-height:1.4;color:#293478}.ep-close{border:1px solid #e1e8f2;background:#f3f6fb;color:#293478;font-size:26px;width:38px;height:38px;border-radius:50%;cursor:pointer;flex:none;line-height:1}.ep-pdf{height:65dvh;min-height:240px;background:#f1f4f8}.ep-pdf iframe{display:block;width:100%;height:100%;border:0}.ep-modal-footer{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e5ebf3;background:#fff}.ep-confirm-dialog{max-width:500px}.ep-confirm-dialog>p{padding:8px 24px;margin:16px 0}.ep-auth :focus-visible,.ep-dialog :focus-visible{outline:3px solid #d5ad59;outline-offset:3px}
@media(max-width:991px){.ep-login-layout{gap:30px}.ep-intro h1{font-size:34px}.ep-login-card{padding:28px}.ep-register-columns{grid-template-columns:220px minmax(0,1fr)}.ep-register-form{padding:24px}}
@media(max-width:767px){.ep-header{padding:18px 20px;gap:12px}.ep-brand img{width:215px}.ep-nav{padding:9px 12px;font-size:12px;gap:6px}.ep-login-layout{grid-template-columns:1fr;margin:15px auto 30px;padding:0 20px;gap:26px}.ep-intro h1{font-size:30px;margin:10px 0 14px}.ep-intro>p{font-size:14px}.ep-info-card,.ep-intro-note{display:none}.ep-login-card{border-radius:20px;padding:26px}.ep-login-card h2{font-size:28px}.ep-footer{padding:18px 20px;flex-direction:column;gap:5px}.ep-register-layout{padding:0 20px;margin-top:14px}.ep-register-intro{align-items:flex-start;flex-direction:column;gap:16px}.ep-register-intro h1{font-size:28px}.ep-register-columns{grid-template-columns:1fr;gap:18px}.ep-register-aside{padding:20px}.ep-register-aside ol{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.ep-register-aside h2{font-size:19px}.ep-register-aside .ep-note{margin:12px 0}.ep-register-form{padding:20px 16px;border-radius:18px}.ep-field-grid{grid-template-columns:1fr;gap:16px}.ep-date-grid{gap:8px}.ep-date-grid .ep-field input,.ep-date-grid .ep-field select{padding:10px 6px;font-size:13px}.ep-modal-header{padding:16px}.ep-modal-header h2{font-size:17px}.ep-modal-footer{padding:14px;flex-wrap:wrap}.ep-modal-footer>*{flex:1;white-space:normal}.ep-pdf{height:60dvh}.ep-dialog{border-radius:15px}.ep-primary,.ep-secondary{font-size:13px;padding:11px 17px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.ep-register-form .ep-email-field{grid-column:1 / -1}.ep-email-field .ep-note{margin:0 0 14px}

.ep-footer-line{width:100%;border-top:1px solid var(--ep-line)}.ep-footer-line .ep-footer{border-top:0}

.ep-header-actions{display:flex;align-items:center;gap:14px;flex:none}.ep-register .ep-header-actions .ep-nav{background:#293478;border-color:#293478;color:#fff;font-weight:700}.ep-register .ep-header-actions .ep-nav:hover{background:#1d285e;text-decoration:none}.ep-register-language{display:flex;align-items:center;gap:8px;border:1px solid #d7deed;border-radius:24px;padding:6px 12px;background:#fff;font-size:11px}.ep-register-language button{display:flex;align-items:center;gap:6px;border:0;padding:3px 0;background:transparent;color:#8793ac;font:inherit;cursor:pointer}.ep-register-language button[aria-pressed=true]{color:#293478;font-weight:700}.ep-register-language svg{width:23px;height:16px}.ep-register-language>span{color:#bdc6db}@media(max-width:767px){.ep-register .ep-header{flex-wrap:wrap}.ep-header-actions{gap:10px;margin-left:auto}.ep-register-language{padding:5px 10px}}

.ep-register .ep-header-actions .ep-nav,.ep-register .ep-register-language{height:42px;min-height:42px;box-sizing:border-box;align-items:center}.ep-register .ep-header-actions .ep-nav{padding:0 20px;justify-content:center}.ep-register .ep-register-language{padding:0 12px}
