/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0e0e1a;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.split-screen {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 120px); /* accounting for header and footer */
}

.form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background-color: #0e0e1a;
}

.image-side {
  flex: 1;
  background-color: #16162a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-side img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 30px;
  box-shadow: 0 30px 30px rgba(0, 0, 0, 0.8);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 70%, transparent 100%);
}

/* Form Styling */
.form-wrapper {
  width: 100%;
  max-width: 400px;
}

.brand {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.subtext {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 30px;
}

form label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  margin-top: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: #1f1f2e;
  color: white;
  border: 1px solid #333;
  font-size: 1rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #999;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 12px;
  right: 14px;
  cursor: pointer;
  font-size: 1rem;
  color: #ccc;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 20px;
  font-size: 0.95rem;
}

.checkbox-group input {
  margin-right: 8px;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
}

.primary {
  background: #5b72ee;
  color: white;
}

.primary:hover {
  background: #4e63d9;
}

/* Links */
.login-link {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

.login-link a {
  color: #5b72ee;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 800px) {
  .split-screen {
    flex-direction: column;
  }

  .image-side {
    display: none;
  }

  .form-side {
    padding: 40px 20px;
  }
}

#register-error, #register-success {
  font-weight: 600;
  margin-top: 15px;
  text-align: center;
  font-size: 1rem;
}

#register-error {
  color: #ff4d4f; /* rojo */
}

#register-success {
  color: #8ec07c; /* verde */
}
