:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0d1b1b;
  --muted: #6b7280;
  --primary: #359eff;
  --primary-dark: #1986ee;
  --border: #d1d5db;
  --danger: #b91c1c;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

.top-line {
  display: none;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 8px 14px 24px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.brand {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.logo-drtele {
  width: 145px;
  max-width: 62vw;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  object-fit: contain;
}

.panel {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(209, 213, 219, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__right {
  width: 100%;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #111827;
}

.subtitle {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

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

.label {
  margin-bottom: -5px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  color: #111827;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  border-color: rgba(53, 158, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(53, 158, 255, 0.16);
}

.password-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.password-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input--password {
  flex: 1 1 auto;
  min-width: 0;
}

.icon-btn {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: #f3f4f6;
}

.btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #2f95ff 0%, #1565d8 55%, #0c4db4 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.16),
    0 8px 16px rgba(21, 101, 216, 0.18);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}

.btn:hover {
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#backBtn {
  background: linear-gradient(180deg, #4aa3ff 0%, #1f73e8 55%, #1158ca 100%);
  color: #ffffff;
}

.msg {
  min-height: 20px;
  margin: 2px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.is-loading .btn__text::after {
  content: "...";
}

@media (max-width: 390px) {
  .page {
    padding: 7px 10px 20px;
  }

  .brand {
    margin-bottom: 7px;
  }

  .logo-drtele {
    width: 132px;
  }

  .panel {
    border-radius: 16px;
  }

  .panel__right {
    padding: 25px 18px;
  }

  .title {
    font-size: 27px;
  }

  .subtitle {
    margin-bottom: 21px;
  }
}

@media (min-width: 641px) {
  .page {
    padding-top: 12px;
  }

  .logo-drtele {
    width: 150px;
  }

  .panel__right {
    padding: 34px 32px;
  }
}
