/* ===== AUTH TITLE ===== */

.auth-title {
  text-align: center;
  font-family:"Outfit", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 35px;
  color: #1e3a8a;
}

.auth-title span {
  font-family:"Outfit", sans-serif;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ===== LOGIN SECTION ===== */

.login-section {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* Login Card */
.login-card {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border-radius: 30px;
  padding: 45px;
  box-shadow: 0 30px 70px rgba(37, 99, 235, .25);
  
  opacity: 0;
  transform: translateY(50px);
  animation: cardEnter 1s ease forwards;
}

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

/* Inputs */
.input-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
}

.input-group input {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  font-size: 14px;
  transition: .3s;
}

.input-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}

/* Password Wrapper */
.password-wrapper {
  position: relative;
  display: flex;
}

.password-wrapper input {
  width: 100%;
}

/* Toggle */
.toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #e0e7ff;
  color: #1d4ed8;
  transition: .3s;
}

.toggle-btn.active {
  background: #2563eb;
  color: #fff;
}

/* Remember Fix */
.remember-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #334155;
}

.remember-wrapper input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

/* Button */
.login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: .35s;
}

.login-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .4);
}

.back-link {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

.back-link a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

/* ===== POPUP ===== */

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: .4s;
}

.popup.active {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  background: #fff;
  padding: 30px 35px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  transform: scale(.8);
  transition: .4s;
  max-width: 300px;
  width: 90%;
}

.popup.active .popup-content {
  transform: scale(1);
}

.popup-content p {
  margin-bottom: 20px;
  font-weight: 600;
}

.popup-content button {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

/* ===== BUTTON LOADER ===== */

.loader-btn{
  width:18px;
  height:18px;
  border:2px solid rgba(255,255,255,.5);
  border-top:2px solid #fff;
  border-radius:50%;
  animation:spin .6s linear infinite;
  margin:auto;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

/* ===== SIGNUP CARD (Different Design) ===== */

.signup-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, #ffffff, #f1f5ff);
  border-radius: 35px;
  padding: 50px;
  box-shadow: 0 35px 80px rgba(37, 99, 235, .25);
  
  opacity: 0;
  transform: translateY(60px) scale(.95);
  animation: signupEnter 1s cubic-bezier(.17, .67, .83, .67) forwards;
}

@keyframes signupEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.signup-card .login-btn {
  margin-top: 10px;
}

/* PASSWORD RULES */

.password-rules {
  margin-top: 10px;
  font-size: 13px;
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 4px 0;
color: #9ca3af;
transition: 0.3s;
}

.password-rules p {
  transform: scale(.98);
}

.password-rules p.valid {
  transform: scale(1.02);
}

.password-rules p.valid {
  color: #16a34a;
  font-weight: 600;
}

.password-rules p.invalid {
  color: #dc2626;
}

/* Loader inside button */

.loader-btn {
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ============================= */
/* SIGNUP CONTAINER */
/* ============================= */

.signup-container {
  position: relative;
}


/* ============================= */
/* GO BACK BUTTON */
/* ============================= */

.back-btn {
  
  position: absolute;
  
  top: 15px;
  right: 15px;
  
  padding: 8px 16px;
  
  font-size: 13px;
  font-weight: 600;
  
  color: #fff;
  
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  
  border: none;
  
  border-radius: 25px;
  
  cursor: pointer;
  
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  
  transition: all .35s ease;
}


/* Hover Animation */

.back-btn:hover {
  
  transform: translateY(-2px);
  
  box-shadow: 0 10px 20px rgba(99, 102, 241, .5);
  
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  
}


/* Click Effect */

.back-btn:active {
  transform: scale(.95);
}

.login-card {
  position: relative;
}

.back-btn {
  
  position: absolute;
  top: 15px;
  right: 15px;
  
  padding: 8px 16px;
  
  font-size: 13px;
  font-weight: 600;
  
  color: #fff;
  
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  
  border: none;
  
  border-radius: 25px;
  
  cursor: pointer;
  
  transition: .3s;
  
}

.back-btn:hover {
  
  transform: translateY(-2px);
  
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  
}
