body {
  min-height: 100vh;
  margin: 0;
  background: #f1f5f9;
  color: #0f172a;
  font-family: 'Roboto', sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .12);
}

.register-card {
  max-width: 720px;
}

.login-logo {
  width: min(250px, 100%);
  height: auto;
}

.login-title {
  color: #0f172a;
  font-size: 1.6rem;
  font-weight: 800;
}

.login-sub {
  color: #64748b;
  font-size: .9rem;
}

.login-card .form-control,
.login-card .form-select {
  min-height: 46px;
  border: 1.5px solid #dbe3ec;
  border-radius: 9px;
  padding: 10px 13px;
  background: #f8fafc;
  font-size: .9rem;
}

.login-card .form-control:focus,
.login-card .form-select:focus {
  border-color: #1557a0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 87, 160, .12);
}

.btn-login {
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  background: #1557a0;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  transition: background .18s ease, transform .18s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  background: #0d3d72;
  color: #fff;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.role-tabs .nav-link {
  width: 100%;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  color: #475569;
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 5px;
}

.role-tabs .nav-link.active {
  border-color: #1557a0;
  background: #eaf2fb;
  color: #1557a0;
}

.auth-switch {
  color: #64748b;
  font-size: .88rem;
}

.auth-switch a {
  color: #1557a0;
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.input-icon {
  position: relative;
}

.input-icon > .bi {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
}

.input-icon .form-control {
  padding-right: 46px;
  padding-left: 42px;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #eaf2fb;
  color: #1557a0;
  outline: none;
}

.password-toggle .bi {
  font-size: 1rem;
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 22px;
    border-radius: 13px;
  }
}
