:root {
  --login-green: #00664f;
  --login-ink: #102b3d;
  --login-muted: #8c9bb4;
}
.role-code-dialog { border: 0; border-radius: 18px; color: #102b3d; box-shadow: 0 20px 65px rgba(12, 51, 43, .23); }
.role-code-dialog .modal-header, .role-code-dialog .modal-footer { border-color: #e6eee9; }
.role-code-dialog .modal-title { color: #064d47; font-weight: 750; }
.role-code-dialog .modal-body p { color: #536879; }
.role-code-dialog .form-control { padding: 11px 15px; border: 1px solid #cbded4; color: #102b3d; }
.role-code-dialog .form-control:focus { border-color: #006d54; box-shadow: 0 0 0 3px rgba(0,109,84,.12); }
.role-code-error { margin-top: 9px; color: #b42318; font-size: 13px; }
.role-code-submit { background: #006d54; color: #fff; border-radius: 8px; }
.role-code-submit:hover { background: #005640; color: #fff; }
.slide-captcha { width: min(320px, 100%); margin: 10px auto 18px; padding: 10px; border: 1px solid #dbe8e0; border-radius: 12px; background: #f8fcfa; }
.slide-captcha-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #174e42; font-size: 13px; }
.slide-captcha-heading button { border: 0; background: transparent; color: #006d54; }
.slide-captcha-image { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 8px; background: #dcefe5; }
.slide-captcha-image #captcha-background { display: block; width: 100%; height: 100%; }
.slide-captcha-image #captcha-piece { position: absolute; left: 0; width: 16.875%; height: 30%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); pointer-events: none; }
.slide-captcha-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.slide-captcha-controls input[type=range] { flex: 1; min-width: 0; accent-color: #006d54; cursor: grab; }
.slide-captcha-controls input[type=range]:disabled { cursor: default; }
.slide-captcha-controls button { padding: 5px 10px; border: 0; border-radius: 7px; background: #006d54; color: #fff; font-size: 12px; font-weight: 700; }
.slide-captcha-controls button:disabled { opacity: .5; }
#captcha-status { display: block; min-height: 17px; margin-top: 6px; color: #617b71; font-size: 11px; line-height: 1.35; }
#captcha-status[data-state=error] { color: #b42318; }
#captcha-status[data-state=success] { color: #006d54; font-weight: 700; }
html, body { min-height: 100%; }
body { background: radial-gradient(circle at 51% 0%, #f8fffb, #e9f7f0 58%, #dcebe5) !important; color: var(--login-ink) !important; }
.login-container {
  min-height: 100vh;
  padding: 28px 22px;
  background: transparent;
}
.login-card {
  display: grid;
  grid-template-columns: 52.5% 47.5%;
  width: min(1268px, 100%);
  max-width: 1268px;
  min-height: 714px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(11,76,58,.12) !important;
  overflow: hidden;
  animation: none;
}
.login-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #e3f7f4 0%, #e3f5ee 52%, #e9f9ed 100%);
}
.login-visual::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 560px;
  height: 560px;
  top: 55px;
  right: -365px;
  border-radius: 50%;
  background: rgba(146,218,174,.33);
}
.login-visual::after {
  content: '';
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(125deg, #edf9f1, #dceee4);
  clip-path: polygon(0 0, 100% 76%, 100% 100%, 0 100%);
}
.login-building {
  position: absolute;
  z-index: 1;
  top: 58%;
  left: 4%;
  width: 92%;
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
}
.login-photo-fade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(234,248,240,.96) 0%, rgba(234,248,240,.84) 18%, rgba(234,248,240,.42) 38%, rgba(234,248,240,.08) 55%, transparent 70%);
}
.login-visual-brand {
  position: absolute;
  z-index: 4;
  top: 34px;
  left: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #064c45;
}
.login-visual-brand img { width: 86px; height: 86px; object-fit: contain; }
.login-visual-brand strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; }
.login-visual-brand small { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .36em; }
.login-visual-brand em { display: block; width: 28px; height: 2px; margin-top: 13px; background: #65d18a; }
.login-visual-copy { position: absolute; z-index: 4; top: 135px; left: 62px; }
.login-visual-copy h1 {
  margin: 0;
  color: #00654f;
  font-size: clamp(88px, 9vw, 132px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.075em;
  transform: translateY(-8px);
}
.login-visual-copy h1 span { color: #62cf7c; }
.login-visual-copy h2 { margin: 0 0 8px; color: #064d47; font-size: 18px; font-weight: 800; letter-spacing: .48em; white-space: nowrap; }
.login-visual-copy p { margin: 0; color: #245766; font-size: 11px; font-weight: 700; letter-spacing: .31em; line-height: 1.65; }
.login-visual-foot {
  position: absolute;
  z-index: 4;
  bottom: 32px;
  left: 64px;
  color: #386776;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .29em;
  line-height: 1.85;
  text-transform: uppercase;
}
.login-visual-foot::before { content: ''; display: block; width: 24px; height: 2px; margin-bottom: 14px; background: #42bf7e; }
.login-form-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 54px 56px 42px 72px;
  border: 0;
  background: #fff;
  box-shadow: none;
}
.login-form-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.login-form-mark { display: flex; align-items: flex-start; gap: 13px; }
.login-form-mark::before { content: ''; width: 30px; height: 5px; margin-top: 11px; border-radius: 8px; background: #08a967; }
.login-form-mark strong { display: block; color: #00654e; font-size: 19px; font-weight: 800; line-height: 1.1; }
.login-form-mark small { display: block; margin-top: 5px; color: #7889a5; font-size: 10px; font-weight: 800; letter-spacing: .21em; line-height: 1.55; }
.login-motto { padding-left: 18px; border-left: 2px solid #5dcc8b; color: #8a98ad; font-size: 9px; font-weight: 800; letter-spacing: .25em; line-height: 1.65; }
.login-main { margin-top: 48px; }
.login-title { margin: 0 0 8px; color: #102b3d; font-size: clamp(30px, 2.7vw, 39px); font-weight: 800; line-height: 1.15; letter-spacing: -.045em; text-align: left; }
.login-subtitle { margin: 0 0 24px; color: #8997b0; font-size: 18px; font-weight: 650; line-height: 1.45; text-align: left; }
.login-role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); height: 48px; padding: 4px; border: 1px solid #e7ebf0; border-radius: 28px; background: #f9fafc; box-shadow: inset 0 2px 4px rgba(34,61,81,.03); }
.login-role-tabs button { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-right: 1px solid #ecedf0; border-radius: 25px; background: transparent; color: #203448; font-size: 14px; font-weight: 650; }
.login-role-tabs button:last-child { border-right: 0; }
.login-role-tabs button.active { border-right-color: transparent; background: #006d54; color: #fff; box-shadow: 0 4px 11px rgba(1,109,84,.2); }
.login-role-tabs button i { font-size: 17px; }
.login-other-roles { display: none; margin-top: 8px; color: #667994; font-size: 12px; }
.login-card.role-admin .login-other-roles { display: block; }
.login-other-roles summary { cursor: pointer; width: max-content; margin-left: auto; list-style: none; }
.login-other-roles summary::-webkit-details-marker { display: none; }
.login-other-roles button { margin-left: 7px; padding: 4px 10px; border: 1px solid #d5e8de; border-radius: 14px; background: #f4fbf7; color: #00654e; }
#form-login { margin-top: 24px; }
.login-field { position: relative; margin-bottom: 10px; }
.login-field > i { position: absolute; top: 17px; left: 18px; color: #526787; font-size: 19px; }
.login-field .form-control { width: 100%; height: 53px; padding: 0 48px 0 60px; border: 1px solid #dce3ed; border-radius: 9px; background: #fff; color: #18384e; font-size: 14px; box-shadow: 0 1px 3px rgba(13,47,73,.04); }
.login-field .form-control::placeholder { color: #8694ad; }
.login-field .form-control:focus { border-color: #1aa57a; box-shadow: 0 0 0 3px rgba(26,165,122,.13); }
.login-field-help { display: block; margin: -4px 0 14px 60px; color: #96a2b8; font-size: 11px; }
.login-eye { position: absolute; top: 0; right: 6px; width: 48px; height: 53px; border: 0; background: transparent; color: #586c8b; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin: 21px 0 26px; font-size: 12px; }
.login-options label { display: flex; align-items: center; gap: 10px; margin: 0; color: #526481; cursor: pointer; }
.login-options input { width: 19px; height: 19px; margin: 0; accent-color: #006d54; }
.login-forgot { padding: 0; border: 0; background: transparent; color: #00795d; font-size: 12px; font-weight: 700; }
.btn-login { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 62px; padding: 0 50px; border: 0; border-radius: 32px; background: #006c54; box-shadow: 0 8px 18px rgba(0,91,69,.14); color: #fff; font-size: 19px; font-weight: 750; }
.btn-login:hover, .btn-login:focus { background: #005941; color: #fff; box-shadow: 0 10px 20px rgba(0,91,69,.2); }
.btn-login i { position: absolute; right: 30px; font-size: 20px; }
.login-form-foot { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 26px; color: #9ba8bf; font-size: 10px; font-weight: 800; letter-spacing: .17em; white-space: nowrap; }
.login-form-foot::before, .login-form-foot::after { content: ''; height: 1px; flex: 1; background: #dbe2ec; }
@media (min-width: 901px) and (max-width: 1250px) {
  .login-form-container { padding: 48px 42px 38px 48px; }
}
@media (max-width: 900px) {
  .login-card { grid-template-columns: 47% 53%; }
  .login-form-container { padding: 42px 35px; }
  .login-visual-copy { left: 36px; }
  .login-visual-copy h1 { font-size: 91px; }
  .login-visual-copy h2 { font-size: 13px; }
}
@media (max-width: 700px) {
  .login-container { padding: 14px; }
  .login-card { display: flex; flex-direction: column; min-height: 0; }
  .login-visual { min-height: 280px; }
  .login-building { top: 50%; height: calc(100% - 120px); max-height: none; }
  .login-visual-brand { top: 18px; left: 24px; }
  .login-visual-brand img { width: 53px; height: 53px; }
  .login-visual-brand strong { font-size: 12px; }
  .login-visual-brand small { font-size: 8px; }
  .login-visual-copy { top: 95px; left: 26px; }
  .login-visual-copy h1 { font-size: 78px; }
  .login-visual-copy h2 { font-size: 11px; }
  .login-visual-copy p { font-size: 8px; }
  .login-visual-foot { display: none; }
  .login-visual::after { height: 60px; }
  .login-form-container { min-height: 580px; padding: 30px 25px; }
  .login-main { margin-top: 32px; }
  .login-motto { font-size: 7px; }
  .login-title { font-size: 29px; }
  .login-subtitle { font-size: 14px; }
}
