/* Full page wrapper */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--color-bg);
}

/* Login card */
.login-card {
  background-color: var(--color-white);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Header */
.login-header h2 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.login-header p {
  margin-bottom: 2rem;
  color: var(--color-secondary);
  font-size: 0.95rem;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  font-size: 1rem;
  background: #fafafa;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.form-group input:hover {
  border-color: rgba(0,0,0,0.18);
}

.form-group input:focus {
  background: #fff;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 3px rgba(203,12,159,0.12),
    inset 0 1px 2px rgba(0,0,0,0.05);
}





/* Captcha */


.captcha-row { 
  display: flex; 
  flex-direction: column; /* ⬇ Stack vertically */ 
  align-items: center; 
  margin: 1.2rem 0 1.5rem 0; 
  gap: 12px;
 }


 
.captcha-box {
  width: 100%;
  display: flex;              /* 🔥 make it flex */
  align-items: center;        /* vertical center */
  justify-content: center;    /* horizontal center */
  gap: 10px;                  /* space between image & button */

  background: linear-gradient(135deg, #fff3f3, #ffeaea);
  border: 1px dashed #b30000;
  padding: 8px;
  color: #8b0000;
  border-radius: 10px;
  font-family: var(--font-main);
  box-shadow: inset 0 0 8px rgba(179,0,0,0.08);
}


#captcha-img{
  width: 250px;
}

.captcha-refresh {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: none;
  background: #b30000;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.captcha-refresh:hover {
  background: #900000;
  transform: rotate(180deg);
}


.captcha-input {
  width: 100%;
  padding: 12px;
  font-size: 20px;
  text-align: center;
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.12);
  background: #fafafa;
  letter-spacing: 4px;
  transition: all 0.25s ease;
}

.captcha-input:focus {
  background: #fff;
  border-color: #b30000;
  box-shadow: 0 0 0 3px rgba(179,0,0,0.15);
}
.otp-timer {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0b5ed7;
  text-align: center;
}

.otp-timer.expiring {
  color: #dc3545;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0.5; }
}


/* Button */
.btn-primary {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: var(--color-primary); /* define hover in variables.css */
  color:black;
}

/* Register redirect link */
.register-redirect {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.register-redirect a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.register-redirect a:hover {
  text-decoration: underline;
}


/* Responsive */
@media (max-width: 500px) {
  .login-card {
    padding: 2rem 1.5rem;
  }
}


