/* ORION — Login (light glass) */

:root {
  --bg: #eef2f7;
  --bg-deep: #e8eef6;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-2: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.72);
  --text: #1e293b;
  --text-soft: #64748b;
  --text-muted: rgba(30, 41, 59, 0.58);
  --text-faint: rgba(30, 41, 59, 0.4);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.14);
  --accent: #D10024;
  --red: #D10024;
  --red-dim: rgba(209, 0, 36, 0.14);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.18s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button,
input {
  font-family: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-deep);
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 0;
  background: url('../assets/bg-main-tower.jpg?v=1') calc(50% - 50px) center / cover no-repeat;
  filter: blur(0px);
  pointer-events: none;
  background-position: left center;
}

.login-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* background: rgba(218, 209, 209, 0.8); */
  pointer-events: none;
}

.login-shell > * {
  position: relative;
  z-index: 2;
}

.login-tsel-logo {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 3;
  width: 100px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* ===== Left hero ===== */
.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 50px;
  padding: 36px 44px 40px;
  overflow: hidden;
  background: transparent;
}

.login-hero > * {
  position: relative;
  z-index: 1;
}

.login-hero-copy {
  max-width: 460px;
  margin: 0;
}

.login-hero-copy h1 {
  font-size: clamp(30px, 4.6vw, 30px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.login-hero-copy p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 400px;
}

.login-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-role {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 110px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  color: var(--text);
  text-align: left;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.login-role:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(209, 0, 36, 0.28);
}

.login-role.is-active {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(209, 0, 36, 0.45);
  color: var(--text);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 41, 59, 0.08);
}

.login-role-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  background: rgb(255 255 255 / 50%);
  color: inherit;
}

.login-role.is-active .login-role-num {
  background: var(--accent);
  color: #fff;
}

.login-role-main {
  display: flex;
  align-items: center;
  gap: 15px;
}

.login-role-icon {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
}

.login-role-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-role-body strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.login-role-body em {
  font-style: normal;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.5);
}

.login-role.is-active .login-role-body em {
  color: rgb(0 0 0 / 60%);
}

/* ===== Right panel ===== */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  /* background: transparent;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%); */
}

.login-panel-inner {
  width: 100%;
  max-width: 380px;
}

.login-panel-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.login-brand-mark {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  background: transparent;
  flex-shrink: 0;
  overflow: hidden;
}

.login-brand-mark .brand-logo,
.login-brand-mark .ai-lottie {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.login-brand-mark .ai-lottie svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.login-brand-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 5px;
  line-height: 1.2;
  color: #000;
  margin-top: -30px;
}

.login-panel-head {
  text-align: center;
  margin-bottom: 28px;
}

.login-panel-head p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.login-row[hidden],
.login-row--register[hidden] {
  display: none;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}

.login-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(30, 41, 59, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.login-field input::placeholder {
  color: var(--text-faint);
}

.login-field input:focus {
  border-color: rgba(209, 0, 36, 0.55);
  background: rgba(255, 255, 255, 0.92);
}

.login-password {
  position: relative;
}

.login-password input {
  padding-right: 42px;
}

.login-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 6px;
}

.login-eye:hover {
  color: var(--text);
  background: rgba(30,41,59,0.05);
}

.login-hint {
  font-size: 11px;
  color: var(--text-faint);
}

.login-submit {
  margin-top: 8px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(209, 0, 36, 0.35);
  background: var(--accent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(209, 0, 36, 0.28);
  transition: transform var(--transition), opacity var(--transition), background var(--transition), border-color var(--transition);
}

.login-submit:hover {
  background: #B0001F;
  border-color: #B0001F;
}

.login-submit:active {
  transform: translateY(0);
}

.login-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.login-switch button {
  margin-left: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

.login-switch button:hover {
  color: #B0001F;
}

@media (max-width: 960px) {
  body {
    overflow: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
  }

  .login-hero {
    min-height: 52vh;
    padding: 28px 24px 32px;
  }

  .login-hero-copy {
    margin: 0;
  }

  .login-hero-copy h1 {
    font-size: 34px;
  }

  .login-roles {
    grid-template-columns: 1fr;
  }

  .login-role {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
  }

  .login-panel {
    padding: 36px 24px 48px;
    border-left: 0;
    border-top: 1px solid rgba(30,41,59,0.05);
  }
}
