* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(46, 204, 113, 0.08), transparent 30%),
    radial-gradient(circle at right center, rgba(52, 152, 219, 0.08), transparent 28%),
    #f5f7fb;
  margin: 0;
  padding: 0;
  color: #102033;
}

/* Encabezado */
.header {
  min-height: 86px;
  background: linear-gradient(to right, #24bf66, #0071c8);
  color: white;
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.header-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}

/* Contenedor principal */
.container {
  width: min(1000px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(280px, 370px) minmax(300px, 430px);
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin: 48px auto;
  padding: 0;
}

/* Tarjeta de imagen */
.image-section {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.10);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 430px;
}

.image-section img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Tarjeta formulario */
.form-section {
  background: #ffffff;
  padding: 34px;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-section h2 {
  text-align: center;
  color: #102033;
  margin: 0 0 22px;
  font-size: 28px;
  letter-spacing: 0.5px;
}

.form-section form {
  width: 100%;
}

.form-section input,
.form-section select {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  margin-bottom: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #102033;
  font-size: 15px;
  outline: none;
  transition: 0.22s ease;
}

.form-section input:focus,
.form-section select:focus {
  border-color: #0071c8;
  box-shadow: 0 0 0 4px rgba(0, 113, 200, 0.14);
}

#rol option[value="1"],
#rol option[value="2"] {
  color: #b91c1c;
  font-weight: 700;
}

#rol option {
  padding: 6px 8px;
}

#rol option:disabled {
  color: #9ca3af;
}

.form-section button {
  width: 100%;
  min-height: 50px;
  padding: 12px;
  margin-top: 4px;
  background: linear-gradient(to right, #20bf62, #10a64f);
  color: white;
  border: none;
  border-radius: 9px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 10px 24px rgba(32, 191, 98, 0.18);
}

.form-section button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.registro-text {
  text-align: center;
  margin: 18px 0 0;
  font-size: 15px;
  color: #102033;
}

.registro-text a {
  color: #0067bd;
  font-weight: 700;
  text-decoration: none;
}

.registro-text a:hover {
  text-decoration: underline;
}

.login-link {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.login-link a {
  color: #2980b9;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 850px) {
  .header {
    padding: 14px 20px;
  }

  .header-text {
    font-size: 21px;
  }

  .container {
    grid-template-columns: 1fr;
    width: min(520px, calc(100% - 28px));
    margin: 28px auto;
    gap: 22px;
  }

  .image-section {
    min-height: auto;
    padding: 22px;
  }

  .image-section img {
    max-width: 190px;
  }

  .form-section {
    padding: 28px 22px;
  }
}

@media (max-width: 520px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .header-text {
    font-size: 20px;
    line-height: 1.25;
  }

  .logo-img {
    width: 58px;
    height: 58px;
  }

  .container {
    width: min(100% - 22px, 480px);
    margin: 20px auto;
  }

  .image-section {
    display: none;
  }

  .form-section {
    padding: 24px 18px;
  }

  .form-section h2 {
    font-size: 25px;
  }

  .form-section input,
  .form-section select {
    height: 48px;
    font-size: 15px;
  }

  .form-section button {
    min-height: 50px;
    font-size: 15px;
  }
}