.auth-screen {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100dvh;
  overflow: auto;
  overscroll-behavior: contain;
  background: #edf1f3;
  padding: 32px 48px 22px;
}
.auth-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(7 24 32 / 12%);
  pointer-events: none;
}
.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.auth-brand { display: flex; align-items: center; gap: 12px; color: white; }
.auth-brand img { width: 52px; height: 52px; padding: 3px; border-radius: 50%; object-fit: contain; background: white; }
.auth-brand strong { display: block; font-size: 25px; line-height: 1.2; font-weight: 750; }
.auth-brand span { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: #e7eef1; }
.auth-language {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 14px;
  background: white;
  border-radius: 8px;
  color: #315166;
}
.auth-language .lucide { width: 18px; height: 18px; }
.auth-language .language-select { background: transparent; color: #16384c; width: 62px; min-width: 62px; padding: 0 10px 0 0; font-size: 13px; font-weight: 650; }
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0;
  min-height: min-content;
}
.auth-form-panel {
  width: 376px;
  max-width: 100%;
  padding: 30px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ffffffb3;
  box-shadow: 0 16px 60px rgb(8 30 40 / 14%);
}
.auth-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.auth-heading h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; color: #143346; overflow-wrap: anywhere; }
.auth-lock { display: grid; place-items: center; width: 36px; height: 36px; background: #eef7f5; border-radius: 50%; color: #16817c; }
.auth-lock .lucide { width: 18px; height: 18px; }
.auth-form { display: grid; grid-template-columns: minmax(0,1fr); }
.auth-form > label { font-size: 13px; color: #3e4d58; font-weight: 600; margin-bottom: 8px; }
.auth-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #dfe5e9;
  border-radius: 8px;
  background: #f8fafb;
  height: 52px;
  min-width: 0;
  color: #7b8b96;
  margin-bottom: 20px;
}
.auth-input > .lucide { width: 18px; height: 18px; flex: none; }
.auth-input:focus-within { border-color: #168c87; box-shadow: 0 0 0 3px #168c8714; background: white; }
.auth-input input { min-width: 0; min-height: 48px; background: transparent; color: #143346; padding: 0; font-size: 15px; font-weight: 400; border: none; outline: none; }
.auth-input input:focus-visible { outline: none; }
.auth-input input::placeholder { color: #84919a; opacity: 1; }
.auth-input button { flex: 0 0 36px; display: grid; place-items: center; width: 36px; min-height: 44px; padding: 0; background: transparent; color: #6f818d; }
.auth-input button .lucide { width: 18px; height: 18px; }
.auth-input:has(#passwordInput) { margin-bottom: 0; }
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  height: 52px;
  padding: 0 18px;
  border-radius: 8px;
  background: #147e7b;
  color: white;
  font-size: 15px;
  font-weight: 650;
  box-shadow: none;
}
.auth-submit:hover:not(:disabled) { background: #106965; }
.auth-submit:disabled { opacity: .7; }
.auth-submit:focus-visible { outline-color: #168c87; }
.auth-error { color: #b32e3d; font-size: 13px; line-height: 1.5; margin-top: 14px; }
.auth-error:empty { display: none; }
.auth-footer { color: #fff; font-size: 12px; line-height: 1.5; text-shadow: 0 1px 5px #142b3a; }

@media (min-width: 1600px) {
  .auth-screen { padding: 40px 64px 28px; }
  .auth-form-panel { width: 408px; padding: 34px; }
}
@media (max-width: 1000px) {
  .auth-screen { padding: 24px; }
  .auth-content { align-items: center; padding: 28px 0; }
  .auth-photo { object-position: 62% center; }
}
@media (max-width: 600px) {
  .auth-screen { padding: 20px; grid-template-rows: auto minmax(min-content,1fr) auto; }
  .auth-photo { object-position: 60% center; }
  .auth-brand img { width: 44px; height: 44px; }
  .auth-brand strong { font-size: 22px; }
  .auth-brand span { font-size: 11px; }
  .auth-header { gap: 12px; }
  .auth-content { padding: 28px 0; }
  .auth-form-panel { width: 380px; padding: 26px 24px; }
  .auth-heading { margin-bottom: 24px; }
  .auth-heading h1 { font-size: 25px; }
  .auth-input input { font-size: 16px; }
  .auth-footer { text-align: center; }
}
@media (max-height: 620px) {
  .auth-screen { padding: 14px 24px; grid-template-rows: auto auto auto; }
  .auth-content { align-items: center; padding: 18px 0; }
  .auth-form-panel { padding: 22px; }
  .auth-heading { margin-bottom: 18px; }
  .auth-input { margin-bottom: 14px; }
  .auth-submit { margin-top: 18px; }
}
