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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, Roboto, Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  color: #303030;
  background: #f1f4f6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-bar {
  background: #00406e;
  border-bottom: 1px solid #c4c7c9;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
}

.app-bar img {
  display: block;
  max-width: 270px;
  width: 100%;
  height: auto;
}

.page-body {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 32px 16px 48px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 8px;
  padding: 32px 28px 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.login-card h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #303030;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #303030;
}

.body-text {
  margin: 0 0 12px;
  line-height: 1.45;
  color: #303030;
}

.body-text.muted {
  margin-bottom: 20px;
}

.method-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
}

.method-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-option__marker {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid #5f5f5f;
  border-radius: 50%;
  background: #fff;
  position: relative;
}

.method-option input:checked + .method-option__marker {
  border-color: #00af66;
}

.method-option input:checked + .method-option__marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #00af66;
}

.method-option__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.method-option__title {
  color: #303030;
  line-height: 1.35;
}

.method-option__hint {
  color: #54534a;
  font-size: 0.875rem;
  line-height: 1.35;
}

.disclaimer-text {
  margin: 0 0 20px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #303030;
}

.step.hidden,
.hidden {
  display: none !important;
}

#verify-code-section {
  margin-top: 8px;
}

#verify-code-section .section-title {
  margin-top: 4px;
}

.field {
  position: relative;
  margin-bottom: 20px;
}

.field input {
  width: 100%;
  height: 56px;
  padding: 22px 14px 8px;
  border: 1px solid #807f83;
  border-radius: 4px;
  background: #fff;
  color: #303030;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus {
  border-color: #00406e;
}

.field label {
  position: absolute;
  left: 14px;
  top: 18px;
  color: #54534a;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.15s ease, color 0.15s ease, font-size 0.15s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field.is-filled label {
  transform: translateY(-10px);
  font-size: 0.75rem;
  color: #00406e;
}

.field input:not(:focus):not(:placeholder-shown) + label,
.field.is-filled:not(:focus-within) label {
  color: #807f83;
}

.login-error {
  color: #d6001c;
  font-size: 0.875rem;
  margin: -8px 0 16px;
  line-height: 1.4;
}

.login-error.hidden {
  display: none;
}

.btn-login {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 4px;
  background: #00af66;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-login:hover:not(:disabled) {
  background: #009a5a;
}

.btn-login:disabled {
  background: #f1f4f6;
  color: #303030;
  cursor: not-allowed;
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
}

.loading.hidden {
  display: none;
}

.loading-inner img {
  width: 80px;
  height: auto;
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 20px 20px;
  }

  .app-bar {
    padding: 14px 16px;
  }
}
