:root {
  --auth-primary: #003366;
  --auth-primary-dark: #004080;
  --auth-cyan: #00bcd4;
  --auth-violet: #6b46c1;
  --auth-text: #e5efff;
}

body {
  padding-top: 0 !important;
}

.auth-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 55%, var(--auth-violet) 100%);
  color: #ffffff;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

.auth-section::before {
  content: "";
  position: absolute;
  inset: -18% -10% auto auto;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.16) 0%, rgba(103, 232, 249, 0) 68%);
  pointer-events: none;
  animation: auraMove 16s ease-in-out infinite;
}

.auth-bg-animated {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.auth-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  animation: authFloat 9s ease-in-out infinite;
}

.auth-blob.blob-1 {
  width: 380px;
  height: 380px;
  background: rgba(0, 188, 212, 0.65);
  top: -70px;
  left: -60px;
}

.auth-blob.blob-2 {
  width: 460px;
  height: 460px;
  background: rgba(107, 70, 193, 0.65);
  bottom: -130px;
  right: -90px;
  animation-delay: -4s;
}

@keyframes authFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-24px) scale(1.06);
  }
}

@keyframes auraMove {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }

  50% {
    transform: translate(-2.5%, 2.5%) scale(1.08);
    opacity: 0.78;
  }
}

@keyframes authRevealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes cardLightSweep {
  0%,
  100% {
    transform: translateX(-35%) translateY(-10%);
    opacity: 0.25;
  }

  50% {
    transform: translateX(35%) translateY(10%);
    opacity: 0.42;
  }
}

@keyframes authButtonSheen {
  0% {
    transform: translateX(-145%);
    opacity: 0;
  }

  18% {
    opacity: 0.65;
  }

  42% {
    transform: translateX(145%);
    opacity: 0;
  }

  100% {
    transform: translateX(145%);
    opacity: 0;
  }
}

.auth-section .container {
  max-width: 1152px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
}

.auth-login-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.auth-panel-left,
.auth-panel-right {
  min-width: 0;
}

.auth-panel-left {
  display: none;
  position: relative;
  z-index: 2;
}

.auth-panel-right {
  position: relative;
  z-index: 3;
}

.auth-panel-right .auth-card {
  max-width: 560px;
  margin: 0 auto;
}

.auth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.auth-stats .auth-stat {
  min-width: 120px;
}

.auth-branding {
  max-width: 520px;
}

.auth-reveal,
.auth-form-block {
  opacity: 0;
  transform: translateY(18px);
  animation: authRevealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-1 {
  animation-delay: 0.08s;
}

.reveal-2 {
  animation-delay: 0.18s;
}

.reveal-3 {
  animation-delay: 0.28s;
}

.reveal-4 {
  animation-delay: 0.38s;
}

.reveal-5 {
  animation-delay: 0.48s;
}

.reveal-6 {
  animation-delay: 0.58s;
}

.reveal-7 {
  animation-delay: 0.68s;
}

.auth-section .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
}

.auth-title {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.12;
  margin: 0;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, #67e8f9, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  color: rgba(229, 239, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
}

.auth-stat .stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: #67e8f9;
}

.stat-number-cyan {
  color: #67e8f9;
}

.stat-number-violet {
  color: #c4b5fd;
}

.stat-number-pink {
  color: #f9a8d4;
}

.auth-stat .stat-label {
  font-size: 0.82rem;
  color: rgba(229, 239, 255, 0.75);
}

.auth-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 2rem 2.25rem;
  box-shadow: 0 34px 64px -26px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px) saturate(130%);
  animation: authCardFloat 7s ease-in-out infinite 1s;
}

.auth-card::before {
  content: "";
  position: absolute;
  width: 62%;
  height: 62%;
  top: -20%;
  left: -26%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.38) 0%, rgba(103, 232, 249, 0) 72%);
  pointer-events: none;
  animation: cardLightSweep 12s ease-in-out infinite;
}

@media (min-width: 992px) {
  .auth-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 3rem;
    row-gap: 0;
  }

  .auth-panel-left {
    display: block;
  }

  .auth-panel-right {
    display: flex;
    justify-content: flex-end;
  }

  .auth-panel-right .auth-card {
    margin-left: auto;
    margin-right: 0;
    width: min(100%, 560px);
  }
}

.auth-card-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.auth-card-subtitle {
  margin: 0.5rem 0 0;
  color: rgba(229, 239, 255, 0.84);
  font-size: 0.96rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form .form-group.mb-4,
.auth-form .mb-4 {
  margin-bottom: 0 !important;
}

.form-label {
  color: #dbe9ff;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(229, 239, 255, 0.75);
  pointer-events: none;
}

.auth-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 0.95rem 2.9rem 0.95rem 2.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.auth-input:hover {
  background: rgba(255, 255, 255, 0.18);
}

.password-icon {
  color: rgba(103, 232, 249, 0.95);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-input::placeholder {
  color: rgba(229, 239, 255, 0.55);
}

.auth-input:focus {
  border-color: rgba(103, 232, 249, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(103, 232, 249, 0.18);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.auth-aux-row {
  margin-top: 0.25rem;
  margin-bottom: 0.35rem !important;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-aux-row .form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.auth-aux-row .auth-link {
  margin-left: auto;
}

.auth-link,
.auth-link-highlight {
  color: #67e8f9;
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover,
.auth-link-highlight:hover {
  color: #c4b5fd;
}

.auth-section .btn.btn-auth-primary,
.auth-section .btn.btn-auth-register {
  --bs-btn-font-family: "Montserrat", sans-serif;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-color: #67e8f9;
  font-family: "Montserrat", sans-serif !important;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.82rem 1.1rem;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.045em;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--auth-cyan), #3b82f6);
  box-shadow: 0 12px 24px -14px rgba(0, 188, 212, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, color 0.25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-section .btn.btn-auth-register {
  background: linear-gradient(135deg, #8e24aa, #3f51b5);
  box-shadow: 0 12px 24px -14px rgba(142, 36, 170, 0.8);
}

.auth-section .btn.btn-auth-primary:hover,
.auth-section .btn.btn-auth-register:hover {
  color: #67e8f9 !important;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 34px -18px rgba(0, 188, 212, 0.9);
  filter: saturate(112%);
}

.auth-section .btn.btn-auth-social {
  --bs-btn-font-family: "Montserrat", sans-serif;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-color: #c4b5fd;
  font-family: "Montserrat", sans-serif !important;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.045em;
  font-size: 1rem;
  padding: 0.88rem 1rem;
  transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-section .btn.btn-auth-social:hover {
  color: #c4b5fd !important;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, 0.7);
}

.auth-section .btn.btn-auth-primary:focus,
.auth-section .btn.btn-auth-register:focus,
.auth-section .btn.btn-auth-social:focus,
.auth-section .btn.btn-auth-primary:active,
.auth-section .btn.btn-auth-register:active,
.auth-section .btn.btn-auth-social:active {
  color: #ffffff !important;
}

.auth-section .btn.btn-auth-primary i,
.auth-section .btn.btn-auth-register i,
.auth-section .btn.btn-auth-social i,
.auth-section .btn.btn-auth-social svg {
  color: currentColor;
}

.auth-section .btn.btn-auth-social .auth-social-content {
  color: inherit !important;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.auth-section .btn.btn-auth-primary::before,
.auth-section .btn.btn-auth-register::before,
.auth-section .btn.btn-auth-social::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-145%);
  animation: authButtonSheen 3.4s ease-in-out infinite;
  z-index: 0;
}

.auth-section .btn.btn-auth-primary:hover::before,
.auth-section .btn.btn-auth-register:hover::before,
.auth-section .btn.btn-auth-social:hover::before {
  animation-duration: 1.5s;
}

.auth-section .btn.btn-auth-primary:focus-visible,
.auth-section .btn.btn-auth-register:focus-visible,
.auth-section .btn.btn-auth-social:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(103, 232, 249, 0.28);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 0.55rem 0 0.2rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 0.8rem;
  font-size: 0.85rem;
  color: rgba(229, 239, 255, 0.7);
  background: rgba(7, 19, 49, 0.35);
  border-radius: 999px;
}

.text-white-80 {
  color: rgba(229, 239, 255, 0.85);
}

.benefits-list {
  display: grid;
  gap: 0.9rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.8rem;
}

.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--auth-cyan), #3b82f6);
}

.benefit-text {
  color: #ffffff;
  font-size: 0.93rem;
  line-height: 1.35;
}

.benefit-text h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.benefit-text p,
.benefit-text p.small {
  margin: 0;
  color: rgba(229, 239, 255, 0.85);
}

.back-to-home {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0;
  border: 0;
  background: transparent;
  transition: color 0.22s ease, transform 0.22s ease;
}

.back-to-home:hover {
  color: #67e8f9;
  transform: translateX(-2px);
}

.auth-google-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.bg-gradient-cyan-blue {
  background: linear-gradient(135deg, #67e8f9, #3b82f6);
}

.bg-gradient-violet-purple {
  background: linear-gradient(135deg, #a78bfa, #a855f7);
}

.bg-gradient-pink-rose {
  background: linear-gradient(135deg, #f9a8d4, #fb7185);
}

.form-check-input {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.1);
}

.form-check-input:checked {
  background-color: #67e8f9;
  border-color: #67e8f9;
}

.form-check-label {
  color: rgba(229, 239, 255, 0.85);
}

.form-text-hint {
  color: rgba(229, 239, 255, 0.72);
  font-size: 0.78rem;
}

@media (max-width: 991px) {
  .auth-card {
    padding: 1.5rem;
    animation: none;
  }

  .auth-title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-blob,
  .auth-card,
  .auth-card::before,
  .auth-section::before,
  .auth-reveal,
  .auth-form-block,
  .back-to-home,
  .btn-auth-primary,
  .btn-auth-register,
  .btn-auth-social,
  .btn-auth-primary::before,
  .btn-auth-register::before,
  .btn-auth-social::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 576px) {
  .auth-card {
    border-radius: 1rem;
    padding: 1.25rem;
  }

  .auth-card-title {
    font-size: 1.45rem;
  }

  .back-to-home {
    left: 1rem;
    top: 1rem;
  }
}
