/* Auth pages for Dr.Log */
:root {
  --auth-bg: #f5f7ff;
  --auth-surface: #ffffff;
  --auth-surface-soft: rgba(255, 255, 255, 0.8);
  --auth-primary: #2f30a1;
  --auth-primary-dark: #2f30a1;
  --auth-primary-darker: #10133a;
  --auth-accent: #2f30a1;
  --auth-border: #d9def0;
  --auth-text: #123047;
  --auth-muted: #617384;
  --auth-shadow: 0 30px 80px rgba(13, 41, 63, 0.14);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 48, 161, 0.16), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(95, 140, 255, 0.14), transparent 26%),
    linear-gradient(160deg, #f7f8ff 0%, #eef1fb 45%, #e8ebf9 100%);
  color: var(--auth-text);
  font-family: "Josefin Sans", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
}

body::before {
  width: 18rem;
  height: 18rem;
  top: -4rem;
  right: -4rem;
  background: radial-gradient(circle, rgba(47, 48, 161, 0.2), rgba(47, 48, 161, 0));
  animation: authFloat 14s ease-in-out infinite alternate;
}

body::after {
  width: 15rem;
  height: 15rem;
  bottom: -3rem;
  left: -3rem;
  background: radial-gradient(circle, rgba(95, 140, 255, 0.18), rgba(95, 140, 255, 0));
  animation: authFloat 16s ease-in-out infinite alternate-reverse;
}

@keyframes authFloat {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-12px) scale(1.04);
  }
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1.5rem;
}

.auth-page__container {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0;
}

.auth-home {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.05rem;
  border: 1px solid rgba(47, 48, 161, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--auth-primary-darker);
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(23, 24, 73, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.auth-home i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--auth-primary);
  color: #fff;
}

.auth-home:hover {
  color: var(--auth-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(23, 24, 73, 0.12);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  min-height: calc(100vh - 3rem);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(18px);
  animation: authRise 0.75s ease-out both;
}

.auth-shell--register {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: clamp(1.75rem, 3vw, 3.5rem);
  color: #fff;
  background: var(--auth-primary);
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.auth-hero > * {
  position: relative;
  z-index: 1;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-badge i {
  color: #dce3ff;
}

.auth-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.auth-hero p {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.7;
}

.auth-checklist {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

.auth-checklist i {
  margin-top: 0.15rem;
  color: #dce3ff;
}

.auth-hero__frame {
  margin-top: auto;
  padding: 0.85rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(4, 22, 35, 0.22);
}

.auth-hero__frame img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.auth-hero__frame--carousel {
  padding: 0.85rem;
}

.auth-carousel {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.auth-carousel .carousel-inner,
.auth-carousel .carousel-item {
  min-height: 460px;
}

.auth-carousel .carousel-item img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
}

.auth-hero__frame--carousel img {
  max-height: none;
  border-radius: 0;
  background: transparent;
}

.auth-carousel__indicators {
  bottom: 12px;
  margin-bottom: 0;
}

.auth-carousel__indicators li {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(47, 48, 161, 0.28);
}

.auth-carousel__indicators .active {
  background-color: var(--auth-primary);
}

.auth-carousel__control {
  width: 12%;
  opacity: 0.95;
}

.auth-carousel__control .carousel-control-prev-icon,
.auth-carousel__control .carousel-control-next-icon {
  width: 2.35rem;
  height: 2.35rem;
  background-color: rgba(47, 48, 161, 0.78);
  border-radius: 50%;
  background-size: 0.95rem 0.95rem;
  box-shadow: 0 10px 20px rgba(47, 48, 161, 0.22);
}

.auth-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  width: fit-content;
}

.auth-hero__chip i {
  color: #dce3ff;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 3vw, 3.25rem);
  background: rgba(255, 255, 255, 0.96);
}

.auth-card__header {
  margin-bottom: 1.35rem;
}

.auth-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(47, 48, 161, 0.1);
  color: var(--auth-primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.auth-card--register .auth-mark {
  font-size: 1rem;
  padding: 0.58rem 1rem;
}

.auth-card__header h2 {
  margin: 0 0 0.45rem;
  color: var(--auth-text);
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  line-height: 1.1;
}

.auth-card__header p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.auth-social,
.auth-submit,
.btn2 {
  min-height: 52px;
  border-radius: 16px !important;
  font-weight: 700;
}

.auth-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  border: 1px solid var(--auth-border);
  background: #fff;
  color: var(--auth-primary-darker) !important;
  box-shadow: none;
}

.auth-social:hover {
  background: rgba(47, 48, 161, 0.04);
  border-color: rgba(47, 48, 161, 0.18);
}

.auth-social i {
  color: #db4437;
  font-size: 1.05rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0;
  color: #758596;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(117, 133, 150, 0), rgba(117, 133, 150, 0.65), rgba(117, 133, 150, 0));
}

.auth-form {
  width: 100%;
}

.auth-form .row {
  margin-left: -8px;
  margin-right: -8px;
}

.auth-form .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.auth-form .form-group {
  position: relative;
  margin-bottom: 1rem;
}

.auth-form label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #27415a;
  font-size: 0.94rem;
  font-weight: 700;
}

.auth-form .form-control {
  min-height: 52px;
  padding-left: 1rem;
  padding-right: 1rem;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: #f8fbfc;
  color: var(--auth-text);
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .form-control::placeholder {
  color: #8b99a6;
}

.auth-form .form-control:focus {
  border-color: rgba(47, 48, 161, 0.75);
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(47, 48, 161, 0.12);
}

.auth-password {
  position: relative;
}

.auth-password .auth-input-wrap {
  position: relative;
  width: 100%;
}

.auth-password .form-control {
  padding-right: 4.25rem;
}

.field-icon,
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(47, 48, 161, 0.12);
  border-radius: 12px;
  background: rgba(47, 48, 161, 0.08);
  color: var(--auth-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(12, 45, 71, 0.06);
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.field-icon:hover,
.auth-password-toggle:hover {
  background: rgba(47, 48, 161, 0.14);
  color: var(--auth-primary);
}

.field-icon i,
.auth-password-toggle i {
  pointer-events: none;
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  margin: 0.35rem 0 1.15rem;
  color: var(--auth-muted);
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #4e6476;
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-remember input[type="checkbox"] {
  position: static;
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex: 0 0 auto;
}

.auth-meta a,
.auth-footer-text a {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-meta a:hover,
.auth-footer-text a:hover {
  color: var(--auth-primary-dark);
  text-decoration: none;
}

.auth-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.4rem;
  border: 0;
  background: var(--auth-primary) !important;
  color: #fff !important;
  box-shadow: 0 18px 30px rgba(47, 48, 161, 0.2);
}

.auth-submit:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(47, 48, 161, 0.24);
}

.auth-submit .fa-spinner,
.fa-spinner {
  display: none;
}

.auth-footer-text {
  margin: 1rem 0 0;
  color: var(--auth-muted);
  text-align: center;
}

.auth-terms {
  margin: 0.35rem 0 1.05rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-terms .form-check-label,
.auth-terms label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  color: #4b6274;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 600;
}

.auth-terms .form-check-input {
  position: static;
  width: 1rem;
  height: 1rem;
  margin: 0.18rem 0 0;
  flex: 0 0 auto;
}

.auth-terms--single-line {
  margin-top: 0.25rem;
}

.auth-terms--single-line .form-check-label {
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0.55rem;
}

.auth-terms--single-line .form-check-input {
  margin-top: 0;
}

.auth-terms a {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-terms a:hover {
  color: var(--auth-primary-dark);
  text-decoration: none;
}

.auth-error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.45rem;
  color: #cc2d2d;
  font-size: 0.92rem;
  font-weight: 700;
}

#forget_password .modal-dialog {
  max-width: 640px;
}

#term-condition .modal-dialog {
  max-width: 960px;
}

#forget_password .modal-content,
#term-condition .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(7, 24, 40, 0.24);
}

#forget_password .modal-headers,
#term-condition .modal-headers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--auth-primary);
  color: #fff;
}

#forget_password .modal-title,
#term-condition .modal-title {
  margin: 0;
  color: inherit;
  font-size: 1.3rem;
  font-weight: 700;
}

#forget_password .close,
#term-condition .close {
  opacity: 1;
  color: #fff;
  text-shadow: none;
}

#forget_password .closeB,
#term-condition .closeB {
  margin: 0 !important;
  width: 2.8rem !important;
  height: 2.8rem !important;
  min-width: 2.8rem !important;
  min-height: 2.8rem !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  opacity: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.9rem !important;
  font-weight: 400;
  line-height: 1 !important;
  text-shadow: none !important;
}

#forget_password .closeB:hover,
#term-condition .closeB:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

#forget_password .modal-body,
#term-condition .modal-body {
  padding: 1.5rem;
  color: var(--auth-text);
}

#term-condition .modal-body {
  max-height: 72vh;
  overflow-y: auto;
}

#forget_password .modal-body h3,
#term-condition .modal-body h1,
#term-condition .modal-body h3 {
  color: var(--auth-primary-darker);
}

#forget_password .modal-body p,
#term-condition .modal-body p,
#term-condition .modal-body li {
  color: #516477;
  line-height: 1.65;
}

#forget_password .btn2,
#term-condition .btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.55rem !important;
  border: 0 !important;
  background: var(--auth-primary);
  color: #fff !important;
  box-shadow: 0 16px 28px rgba(47, 48, 161, 0.18);
}

#forget_password .btn2:hover,
#term-condition .btn2:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 20px 32px rgba(47, 48, 161, 0.22);
}

#forget_password .form-control,
#term-condition .form-control {
  border: 1px solid var(--auth-border) !important;
  border-radius: 14px;
  background: #f8fbfc;
  color: var(--auth-text) !important;
  box-shadow: none !important;
}

#forget_password .form-control:focus,
#term-condition .form-control:focus {
  border-color: rgba(47, 48, 161, 0.75) !important;
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(47, 48, 161, 0.12) !important;
}

#forget_password .forget_error {
  display: block;
  margin: 0.75rem 0 0;
  color: #cc2d2d;
  font-weight: 700;
}

#forget_password .forget_email_body,
#forget_password .forget_email_otp {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.auth-section-note {
  margin-top: 0.85rem;
  color: var(--auth-muted);
  font-size: 0.93rem;
}

@media (min-width: 992px) {
  .auth-page {
    height: 100vh;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .auth-page__container {
    height: 100%;
  }

  .auth-shell {
    height: 100%;
    min-height: 0;
  }

  .auth-card {
    padding: 1.75rem 2rem;
  }

  .auth-card__header {
    margin-bottom: 1rem;
  }

  .auth-hero {
    gap: 1rem;
    padding: 1.6rem 2rem;
  }

  .auth-hero h1 {
    font-size: clamp(1.9rem, 2.5vw, 3rem);
  }

  .auth-hero p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .auth-checklist {
    gap: 0.65rem;
  }

  .auth-checklist li {
    line-height: 1.4;
  }

  .auth-hero__frame {
    padding: 0.7rem;
  }

  .auth-hero__frame img {
    max-height: 340px;
  }

  .auth-carousel,
  .auth-carousel .carousel-inner,
  .auth-carousel .carousel-item {
    min-height: 340px;
  }

  .auth-carousel .carousel-item img {
    height: 340px;
  }

  .auth-hero__chip {
    margin-top: 0.6rem;
  }

  .auth-shell--register .auth-hero__frame {
    padding: 0.6rem;
  }

  .auth-shell--register .auth-hero__frame img {
    max-height: 420px;
  }

  .auth-shell--register .auth-carousel,
  .auth-shell--register .auth-carousel .carousel-inner,
  .auth-shell--register .auth-carousel .carousel-item {
    min-height: 420px;
  }

  .auth-shell--register .auth-carousel .carousel-item img {
    height: 420px;
  }
}

@media (max-width: 991.98px) {
  .auth-page {
    padding: 1rem;
  }

  .auth-page__container {
    max-width: 100%;
  }

  .auth-home {
    position: static;
    margin-bottom: 1rem;
  }

  .auth-shell,
  .auth-shell--register {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-hero {
    min-height: 0;
  }

  .auth-hero__frame img {
    max-height: 360px;
  }

  .auth-carousel,
  .auth-carousel .carousel-inner,
  .auth-carousel .carousel-item {
    min-height: 360px;
  }

  .auth-carousel .carousel-item img {
    height: 360px;
  }

  .auth-terms {
    margin-bottom: 0.9rem;
  }

  .auth-terms--single-line .form-check-label {
    white-space: normal;
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .auth-hero {
    display: none;
  }

  .auth-shell,
  .auth-shell--register {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-home {
    margin-bottom: 0.9rem;
  }

  .auth-shell--register .auth-form .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
  }

  .auth-shell--register .auth-form .row > [class*="col-"] {
    display: contents;
  }

  .auth-shell--register .auth-field {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    order: 0;
  }

  .auth-shell--register .auth-field--name {
    order: 1;
  }

  .auth-shell--register .auth-field--email {
    order: 2;
  }

  .auth-shell--register .auth-field--phone {
    order: 3;
  }

  .auth-shell--register .auth-field--password {
    order: 4;
  }

  .auth-shell--register .auth-field--city {
    order: 5;
  }

  .auth-shell--register .auth-field--speciality {
    order: 6;
  }

  .auth-shell--register .auth-field--work {
    order: 7;
  }

  .auth-shell--register .auth-field--terms {
    order: 8;
  }
}

@media (max-width: 575.98px) {
  .auth-page {
    padding: 0.75rem;
  }

  .auth-shell {
    border-radius: 24px;
  }

  .auth-hero,
  .auth-card {
    padding: 1.25rem;
  }

  .auth-home {
    width: 100%;
    justify-content: center;
  }

  .auth-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .auth-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .auth-remember {
    font-size: 0.9rem;
  }

  .auth-meta a {
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .auth-hero__frame {
    padding: 0.7rem;
  }

  .auth-hero__frame img {
    max-height: 220px;
  }

  .auth-carousel,
  .auth-carousel .carousel-inner,
  .auth-carousel .carousel-item {
    min-height: 230px;
  }

  .auth-carousel .carousel-item img {
    height: 230px;
  }

  .auth-terms .form-check-label {
    font-size: 0.9rem;
  }

  .auth-social,
  .auth-submit,
  #forget_password .btn2,
  #term-condition .btn2 {
    min-height: 48px;
  }
}
