.auth-modal .modal-dialog {
  max-width: 420px;
}

.auth-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(13, 32, 61, 0.18);
}

.auth-modal .modal-body {
  padding: 0;
  position: relative;
}

.auth-modal__inner {
  padding: 2rem 1.75rem 1.75rem;
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f3f8;
  color: #0d203d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-modal__close:hover {
  background: #e4e9f2;
}

.auth-modal__header {
  margin-bottom: 1.35rem;
  padding-right: 2rem;
}

.auth-modal__title {
  margin: 0 0 0.35rem;
  font-family: KelsonBd, sans-serif;
  font-size: 1.45rem;
  color: #0d203d;
  text-transform: lowercase;
}

.auth-modal__subtitle {
  margin: 0;
  font-family: KelsonRg, Roboto, sans-serif;
  font-size: 0.9rem;
  color: #6b7a90;
  line-height: 1.45;
}

.auth-google-wrap {
  min-height: 44px;
  display: flex;
  justify-content: center;
  margin-bottom: 0.25rem;
  width: 100%;
}

.auth-google-wrap > div,
.auth-google-wrap iframe {
  width: 100% !important;
  max-width: 320px;
}

.auth-modal.lr_popup .modal-body {
  padding: 0;
}

.auth-modal.lr_popup .close {
  display: none;
}

.auth-google-wrap.is-hidden {
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1rem 0 1.15rem;
  color: #8a96a8;
  font-family: KelsonRg, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e9f2;
}

.auth-field {
  margin-bottom: 0.9rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: KelsonBd, sans-serif;
  font-size: 0.78rem;
  color: #0d203d;
  text-transform: lowercase;
}

.auth-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrap:focus-within {
  border-color: #02d0d1;
  box-shadow: 0 0 0 3px rgba(2, 208, 209, 0.15);
}

.auth-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  color: #6b7a90;
  background: #f8fafc;
  border-right: 1px solid #e4e9f2;
}

.auth-input-wrap .form-control {
  border: 0;
  border-radius: 0;
  height: 46px;
  font-size: 0.95rem;
  box-shadow: none !important;
}

.auth-input-wrap .form-control:focus {
  box-shadow: none !important;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
}

.auth-row a {
  color: #02d0d1;
  text-decoration: none;
  white-space: nowrap;
}

.auth-row a:hover {
  text-decoration: underline;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.auth-check .form-check-input {
  position: static;
  float: none;
  margin: 0;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
}

.auth-check__text,
.auth-check .form-check-label {
  position: static;
  padding-left: 0;
  margin: 0;
  font-family: KelsonRg, sans-serif;
  font-size: 0.82rem;
  color: #4a5568;
  line-height: 1.25;
}

.auth-row .auth-check {
  overflow: visible;
}

.auth-check--multiline {
  align-items: flex-start;
}

.auth-check--multiline .form-check-input {
  margin-top: 0.2rem;
}

.auth-check__text a {
  color: #02d0d1;
  text-decoration: none;
}

.auth-check__text a:hover {
  text-decoration: underline;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-submit {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #02d0d1 0%, #00b4b5 100%);
  color: #fff;
  font-family: KelsonBd, sans-serif;
  font-size: 0.95rem;
  text-transform: lowercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 208, 209, 0.35);
  color: #fff;
}

.auth-submit i {
  margin-right: 6px;
}

.auth-switch {
  margin: 1.15rem 0 0;
  text-align: center;
  font-family: KelsonRg, sans-serif;
  font-size: 0.88rem;
  color: #6b7a90;
}

.auth-switch a {
  color: #0d203d;
  font-family: KelsonBd, sans-serif;
  text-decoration: none;
}

.auth-switch a:hover {
  color: #02d0d1;
}

.auth-reveal {
  border: 0;
  background: transparent;
  color: #02d0d1;
  font-size: 0.78rem;
  padding: 0;
  cursor: pointer;
  text-transform: lowercase;
}

.auth-reveal:hover {
  text-decoration: underline;
}

.auth-password-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

@media (max-width: 575px) {
  .auth-modal .modal-dialog {
    margin: 0.75rem;
  }

  .auth-modal__inner {
    padding: 1.75rem 1.25rem 1.25rem;
  }

  .auth-modal__header {
    margin-top: 0.5rem;
  }
}
