/* ============================================================
   SG.CLUBES — Registration Page Styles
   Página de registro de usuarios con AdminLTE3
   ============================================================ */

/* ── Body: Fondo completo con overlay ── */
body.registro-page {
  min-height: 100vh;
  margin: 0;
  background: url('/staticfiles/img/fondo1.png') center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Lexend', sans-serif;
}

body.registro-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 30, 60, .15) 0%,
    rgba(0, 30, 60, .30) 40%,
    rgba(0, 10, 30, .50) 100%);
  z-index: -1;
}

/* ── Container principal ── */
.registro-container {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  backdrop-filter: blur(10px);
  position: relative;
}

.registro-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0077c2, #0284c7, #00a8e8);
  z-index: 10;
}

/* ── Body del formulario ── */
.registro-body {
  padding: 35px 40px;
  position: relative;
  z-index: 5;
}

/* ── Header del formulario ── */
.registro-header {
  margin-bottom: 28px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 18px;
}

.registro-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: -0.02em;
}

.registro-header p {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Card Overrides for Registro ── */
.card {
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.card-header {
  background: #f8fafc;
  padding: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: #0284c7;
}

.card-body {
  padding: 1.5rem;
}

/* ── Form Group Horizontal (AdminLTE3 style) ── */
.form-group.row {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
}

.form-group.row .col-form-label {
  padding-top: calc(0.375rem + 1px);
  padding-bottom: calc(0.375rem + 1px);
  font-weight: 500;
  font-size: 0.85rem;
  color: #1e293b;
}

/* ── Image Editor Wrapper ── */
.image-editor-wrapper {
  border-radius: 6px;
  overflow: hidden;
  min-height: 400px;
  margin-bottom: 8px;
}

/* ── Custom Controls (Radio/Checkbox) ── */
.custom-control {
  position: relative;
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.custom-control-input {
  position: absolute;
  left: 0;
  z-index: -1;
  width: 1rem;
  height: 1.25rem;
  opacity: 0;
}

.custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: top;
  cursor: pointer;
  font-size: 0.85rem;
  color: #1e293b;
}

.custom-control-label::before {
  position: absolute;
  top: 0.25rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  background-color: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 3px;
}

.custom-control-label::after {
  position: absolute;
  top: 0.25rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  content: "";
  background: no-repeat 50% / 50% 50%;
}

.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: #0284c7;
  background-color: #0284c7;
}

.custom-radio .custom-control-label::before {
  border-radius: 50%;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* ── Alerts ── */
.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* ── Form Text ── */
.form-text {
  display: block;
  margin-top: 0.25rem;
}

.text-muted {
  color: #6c757d;
  font-size: 0.85rem;
}

.text-danger {
  color: #dc3545;
  font-size: 0.85rem;
}


/* ── Responsive ── */
@media (max-width: 768px) {
  .registro-body {
    padding: 25px;
  }

  .registro-header h1 {
    font-size: 22px;
  }

  .card {
    margin-bottom: 15px;
  }

  .form-group.row {
    flex-direction: column;
  }

  .form-group.row .col-sm-3,
  .form-group.row .col-sm-6,
  .form-group.row .col-sm-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .form-group.row .offset-sm-3 {
    margin-left: 0;
  }
}
