.center-screen {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.14),
      transparent 34%
    ),
    linear-gradient(135deg, #eef5ff, #f8fafc);
}

.card {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 38px 36px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.logo {
  width: 90px;
  height: 90px;

  margin: 0 auto 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border-radius: 22px;

  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.18);

  padding: 12px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
}

.subtitle {
  margin: 8px 0 30px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  margin-bottom: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  color: #0f172a;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 26px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle i {
  font-size: 21px;
}

.btn-primary {
  height: 40px;
  margin-top: 4px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
  width: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.hint {
  margin: 18px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

.status-box {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
}

.status-error {
  background: #fff1f2;
  color: #be123c;
}

.status-loading {
  background: #fffbeb;
  color: #92400e;
}

.status-success {
  background: #f0fdf4;
  color: #15803d;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.role-card-wrapper {
  max-width: 860px;
  padding: 38px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.role-option {
  width: 100%;
  min-height: 135px;
  padding: 22px 16px;
  border-radius: 18px;
  border: 1px solid #dbe3ef;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}

.role-option:hover {
  transform: translateY(-4px);
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.14);
}

.role-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.role-option strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.role-option span {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.role-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
}

.role-disabled:hover {
  transform: none;
  border-color: #dbe3ef;
  box-shadow: none;
}

.role-badge-denied {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .role-card-wrapper {
    max-width: 620px;
  }

  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .role-card-wrapper {
    max-width: 430px;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }
}

.role-actions {
  margin-top: 26px;
  text-align: center;
}

.role-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 14px;
  background: #fff1f2;
  color: #be123c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.role-logout:hover {
  background: #ffe4e6;
}
