* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #102f48;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(77, 183, 235, 0.45),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(30, 113, 181, 0.36),
      transparent 28%
    ),
    linear-gradient(rgba(8, 43, 68, 0.3), rgba(8, 43, 68, 0.36)),
    url("dental-bg.jpg") center / cover no-repeat;
}

button,
input {
  font-family: inherit;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
}

.auth-shell {
  width: min(1180px, 100%);
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

/* Left Brand */
.auth-brand,
.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 70px rgba(5, 46, 78, 0.26);
}

.auth-brand {
  padding: 34px;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(22, 79, 120, 0.78), rgba(48, 168, 226, 0.48)),
    rgba(255, 255, 255, 0.18);
}

.auth-brand::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -150px;
  top: -185px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: -90px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.34);
}

.brand-glass {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0.1)
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-logo {
  width: 118px;
  height: 86px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  box-shadow: 0 22px 45px rgba(5, 46, 78, 0.18);
}

.brand-logo img {
  max-width: 96px;
  max-height: 58px;
  object-fit: contain;
}

.brand-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  background: rgba(16, 47, 72, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.brand-glass h1 {
  margin: 26px 0 14px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: -1.2px;
}

.brand-glass p {
  margin: 0;
  max-width: 570px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 2.2;
}

.brand-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.brand-points div {
  min-height: 82px;
  padding: 14px;
  border-radius: 20px;
  color: #ffffff;
  display: grid;
  align-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-points i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.brand-points span {
  font-size: 13px;
  font-weight: 900;
}

/* Right Card */
.auth-card {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.74),
    rgba(223, 247, 255, 0.44)
  );
}

.auth-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -135px;
  top: -135px;
  border-radius: 50%;
  background: rgba(62, 178, 231, 0.25);
}

.auth-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -80px;
  bottom: -90px;
  border-radius: 50%;
  background: rgba(22, 79, 120, 0.12);
}

.auth-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  margin-bottom: 28px;
  border: 1px solid rgba(70, 174, 225, 0.16);
}

.auth-tab {
  border: 0;
  min-height: 48px;
  border-radius: 15px;
  background: transparent;
  color: #164f78;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.auth-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #164f78, #2b95cf);
  box-shadow: 0 12px 24px rgba(22, 79, 120, 0.24);
}

.auth-form {
  position: relative;
  z-index: 2;
  display: none;
  animation: formFade 0.28s ease;
}

.auth-form.active {
  display: block;
}

@keyframes formFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-heading {
  text-align: center;
  margin-bottom: 28px;
}

.form-heading span {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(43, 149, 207, 0.12);
  color: #164f78;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.form-heading h2 {
  margin: 0;
  color: #103858;
  font-size: 30px;
  letter-spacing: -0.7px;
}

.form-desc {
  margin: -10px 0 22px;
  color: #315a77;
  font-size: 14px;
  line-height: 2;
  text-align: center;
}

.auth-field {
  position: relative;
  display: block;
  margin-bottom: 15px;
}

.auth-field > i {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #1e73b7;
  font-size: 17px;
  z-index: 2;
}

.auth-field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(47, 151, 207, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: #102f48;
  outline: none;
  padding: 0 50px 0 52px;
  font-size: 15px;
  transition: 0.22s ease;
  box-shadow: 0 10px 24px rgba(22, 79, 120, 0.05);
}

.auth-field input::placeholder {
  color: #7b9ab1;
}

.auth-field input:focus {
  background: #ffffff;
  border-color: rgba(43, 149, 207, 0.58);
  box-shadow: 0 0 0 4px rgba(43, 149, 207, 0.12);
}

.toggle-password {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(43, 149, 207, 0.08);
  color: #1e73b7;
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 6px 0 18px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #214d6a;
  font-size: 13px;
  font-weight: 800;
}

.remember-me input {
  accent-color: #1e73b7;
}

.text-btn,
.switch-text button {
  border: 0;
  background: transparent;
  color: #1e73b7;
  cursor: pointer;
  font-weight: 900;
  padding: 0;
}

.auth-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, #164f78, #2f9bd4);
  box-shadow: 0 16px 30px rgba(22, 79, 120, 0.24);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.25s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(22, 79, 120, 0.3);
}

.switch-text {
  margin: 22px 0 0;
  color: #244e69;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
  }

  .brand-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .auth-page {
    padding: 18px;
  }

  .auth-brand {
    display: none;
  }

  .auth-card {
    padding: 26px 20px;
    border-radius: 28px;
  }

  .form-heading h2 {
    font-size: 25px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
}
