html,
body {
  min-height: 100%;
  background: #eef6f6;
  color: #0f172a;
  letter-spacing: 0;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  background:
    linear-gradient(180deg, #008080 0%, #0f8ba0 45%, #f3f7f7 45%, #eef2f7 100%);
}

.auth-shell {
  width: 100%;
  max-width: 430px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  width: 210px;
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 10px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.auth-logo img {
  width: 172px;
  height: auto;
  object-fit: contain;
}

.auth-brand h1 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-brand p {
  margin: 8px auto 0;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.auth-card {
  border: 1px solid #dce7e8;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.auth-card-body {
  padding: 18px;
}

.auth-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 850;
}

.auth-section-title ion-icon,
.auth-section-title i {
  color: #008080;
  font-size: 20px;
}

.auth-choice {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #dce7e8;
  border-radius: 18px;
  color: #0f172a;
  background: #ffffff;
  text-decoration: none !important;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.auth-choice:active {
  transform: scale(0.985);
}

.auth-choice:hover,
.auth-choice:focus {
  color: #0f172a;
  border-color: #99dddd;
  box-shadow: 0 12px 24px rgba(0, 128, 128, 0.12);
  outline: none;
}

.auth-choice-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: #e6f7f7;
}

.auth-choice-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.auth-choice-icon ion-icon,
.auth-choice-icon i {
  color: #008080;
  font-size: 27px;
}

.auth-choice strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 850;
}

.auth-choice span {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.auth-choice-arrow {
  color: #008080;
  font-size: 22px;
}

.auth-form-header {
  padding: 18px 18px 0;
}

.auth-back {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid #dce7e8;
  border-radius: 16px;
  color: #0f6669;
  background: #ffffff;
}

.auth-back ion-icon,
.auth-back i {
  font-size: 21px;
}

.auth-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0f6669;
  background: #e6f7f7;
  font-size: 12px;
  font-weight: 850;
}

.auth-form-title {
  margin: 0;
  color: #0f172a;
  font-size: 25px;
  line-height: 1.16;
  font-weight: 900;
}

.auth-form-copy {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.auth-form {
  padding: 16px 18px 18px;
}

.auth-field {
  margin-bottom: 12px;
}

.auth-field label {
  display: block;
  margin: 0 0 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .form-control {
  height: 52px;
  padding-left: 44px;
  padding-right: 44px;
  border: 1px solid #dce7e8;
  border-radius: 16px;
  color: #0f172a;
  background: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}

.auth-input-wrap .form-control:focus {
  border-color: #008080;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.12);
}

.auth-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #008080;
  font-size: 20px;
  z-index: 2;
}

.auth-password-toggle {
  width: 44px;
  height: 44px;
  position: absolute;
  right: 4px;
  top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  color: #64748b;
  background: transparent;
  z-index: 3;
}

.auth-password-toggle ion-icon,
.auth-password-toggle i {
  font-size: 20px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.auth-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 850;
}

.auth-btn-primary {
  color: #ffffff !important;
  background: #008080 !important;
  border-color: #008080 !important;
}

.auth-btn-secondary {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: #dce7e8 !important;
}

.auth-footer {
  margin: 16px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  font-weight: 700;
}

#loader {
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 360px) {
  .auth-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .auth-card-body,
  .auth-form,
  .auth-form-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }
}
