/* Full-page wrapper */
.register-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  background: var(--color-bg);
  margin-top: 60px;
}

/* Register card */
.register-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: 420px;
  text-align: center;
  transition: transform 0.3s ease;
}

.register-card:hover {
  transform: translateY(-4px);
}




/* 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);
}


#register-captcha{
  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);
}


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

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

/* Form */
.form-group {
  margin-bottom: 1.3rem;
  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: 10px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 6px rgba(117, 81, 255, 0.3);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--gradient-accent);
  color: var(--color-dark);
}

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

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

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

.color-red{
  color: red;
}

.error-message {
  color: #b00020;              /* WCAG-safe red */
  background: #fdecea;
  border: 1px solid #f5c2c7;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}


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