:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0d10;
  color: #f7f8fa;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 106, 0, 0.18), transparent 34rem),
    radial-gradient(circle at 82% 86%, rgba(38, 111, 255, 0.12), transparent 32rem),
    #0b0d10;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.15;
  background-image: radial-gradient(#89919d 0.7px, transparent 0.7px);
  background-size: 22px 22px;
}

.login-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 430px);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(20, 23, 28, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  position: relative;
  width: 88px;
  height: 74px;
  margin-bottom: 24px;
}

.brand-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: #f3eee4;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  transform: rotate(-2deg);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.05);
}

.brand-companion {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 3px solid #15191e;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  transform: rotate(5deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: #ff8a3d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(29px, 8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.intro {
  margin: 15px 0 24px;
  color: #a8afb9;
  font-size: 14px;
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid #2d333b;
  border-radius: 11px;
  background: #0e1115;
}

.auth-tab {
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8c949f;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.auth-tab.active {
  background: #292f37;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 9px;
  color: #dfe3e8;
  font-size: 12px;
  font-weight: 700;
}

.password-field {
  display: flex;
  overflow: hidden;
  border: 1px solid #363c45;
  border-radius: 10px;
  background: #0e1115;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.password-field:focus-within {
  border-color: #ff7a24;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
}

input {
  min-width: 0;
  flex: 1;
  padding: 14px 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

input::placeholder {
  color: #626a75;
}

.form-group > input {
  width: 100%;
  border: 1px solid #363c45;
  border-radius: 10px;
  background: #0e1115;
}

.form-group > input:focus {
  border-color: #ff7a24;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
}

.password-field button {
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #9fa6b0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.password-field button:hover {
  color: #fff;
}

.login-error {
  min-height: 20px;
  margin: 9px 0 5px;
  color: #ff8278;
  font-size: 12px;
  line-height: 1.5;
}

.login-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff751f, #ed5600);
  box-shadow: 0 10px 26px rgba(255, 93, 0, 0.22);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.login-submit:hover {
  filter: brightness(1.08);
}

.login-submit:disabled {
  cursor: wait;
  filter: grayscale(0.35);
  opacity: 0.7;
}

.security-note {
  display: flex;
  gap: 10px;
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #747d89;
  font-size: 11px;
  line-height: 1.5;
}

.security-note > span:first-child {
  color: #43d59a;
}

@media (max-width: 520px) {
  .login-card {
    padding: 32px 24px;
    border-radius: 16px;
  }
}

/* Cùng ngôn ngữ 3D với Studio (depth.css): khối nổi có mép sáng trên, nút có mép dày, ô nhập lõm xuống. */
.login-card {
  background: linear-gradient(180deg, #212835 0%, #151a23 100%);
  border: 1px solid #434d5d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 0 #0a0d12, 0 50px 90px -20px rgba(0, 0, 0, 0.95), 0 20px 40px rgba(0, 0, 0, 0.45);
}
.login-card input {
  background: #0c0f15;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.05);
}
.login-submit {
  background: linear-gradient(180deg, #ff9450 0%, #f5661a 100%);
  border: 1px solid #ff9e62;
  border-bottom-color: #b5470e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 0 #9a3b0a, 0 8px 20px -2px rgba(245, 102, 26, 0.5);
}
.login-submit:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 3px rgba(120, 45, 0, 0.5), 0 1px 0 #9a3b0a;
}
