/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* === Gradient Variables === */
:root {
  --primaryA: #6ee7b7; /* mint */
  --primaryB: #60a5fa; /* blue */
}

/* === Page Background === */
body {
  background: linear-gradient(160deg, rgba(15,118,110,0.15), rgba(37,99,235,0.15), rgba(124,58,237,0.15));
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

/* === Floating Glow Background Animation === */
body::before,
body::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: floatGlow 10s infinite alternate ease-in-out;
  z-index: 0;
}

body::before {
  background: var(--primaryA);
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

body::after {
  background: var(--primaryB);
  bottom: 10%;
  right: 15%;
  animation-delay: 5s;
}

@keyframes floatGlow {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}


/* === Main Auth Container === */
.auth-container {
  display: flex;
  width: 90%;
  max-width: 1100px;
  height: 600px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  overflow: hidden;
}

/* === Animated Gradient Border === */
.auth-container {
  position: relative;
  z-index: 0;
}

.auth-container::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primaryA), var(--primaryB), #c084fc);
  background-size: 300% 300%;
  animation: borderShift 6s ease infinite;
  -mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

@keyframes borderShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Left Side (Image / Illustration) === */
.auth-left {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-image {
  width: 100%;
  height:70%;
  max-width: 1500px;
}

/* === Right Side (Form Section) === */
.auth-right {
  flex: 1;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #0a2540, #0f3d66);
  color:white;
}

/* === Auth Card === */
.auth-card h1 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #6ee7b7, #c084fc, #60a5fa);
  -background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.auth-card .sub {
  color: #dac0c0;
  margin-bottom: 25px;
}

/* === Tabs === */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  background: transparent;
  border: none;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 8px;
  color: #dac0c0;
  transition: all 0.3s;
}

.tab.active {
  background: linear-gradient(135deg, var(--primaryA), var(--primaryB));
  color: white;
}

/* === Form Panes === */
.pane {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pane[hidden] {
  display: none;
}

label span {
  font-size: 14px;
  font-weight: 500;
  color: #dac0c0;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

/* === Password Input === */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* === Buttons === */
.btn-primary {
  background: linear-gradient(135deg, var(--primaryA), var(--primaryB));
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* === Text Links === */
.switch-text, .forgot {
  text-align: center;
  font-size: 14px;
  color: #dac0c0;
}

.switch-text a, .forgot a {
  color: var(--primaryB);
  text-decoration: none;
  font-weight: 600;
}

/* === Footnote === */
.footnote {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 25px;
}

.footnote a {
  color: var(--primaryB);
  text-decoration: none;
  font-weight: 500;
}
