/* ============================================================
   CSS PARA registro.php
   Archivo: /styles/abbatia_registro.css
   ============================================================ */


/* ------------------------------
   CONFIGURACIÓN GENERAL DEL BODY
   ------------------------------ */
body {
    margin: 0;
    font-family: Georgia, serif;
    background: #f4efdf;
}


/* ------------------------------
   CONTENEDOR PRINCIPAL DEL FORM
   ------------------------------ */
.registro-box {
    width: 420px;
    margin: 185px auto 50px auto;
    background: #f6ecd9;
    border: 2px solid #c7b08a;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 0 12px #0003;
    position: relative;
}

.logo-principal{
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: auto;
  z-index: 1000;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}


/* ------------------------------
   TÍTULO SUPERIOR
   ------------------------------ */
.registro-title {
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    font-family: Garamond, Georgia, Arial, serif;
    color: #4a3a24;
    border-bottom: 1px solid #c7b08a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}


/* ------------------------------
   ESTILO DE LAS ETIQUETAS
   ------------------------------ */
label {
    font-weight: bold;
    color: #4a3a24;
    font-size: 13px;
}


/* ------------------------------
   CAMPOS DE TEXTO Y SELECT
   ------------------------------ */

   input[type="text"],
   select{
     width: 100%;
     padding: 8px;
     margin-top: 6px;
     margin-bottom: 18px;
     border: 1px solid #bfa680;
     border-radius: 4px;
     background: #fff;
     font-family: Georgia, serif;
     font-size: 13px;
   }

   /* SOLO el input "Nombre de tu Abadía" más corto */
   input[name="nombre_abbatia"]{
     width: 95%;
     display: block;

     margin-right: auto;
   }

/* ------------------------------
   BOTÓN DE ENVÍO
   ------------------------------ */
button[type="submit"] {
    width: 150px;
    height: 46px;
    display: block;
    margin: 15px auto 0 auto;
    padding: 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Garamond', Georgia, serif;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 12px;
    background-image: url('/img/portada/botton.gif');
    background-size: 150px 46px;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
}
button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    filter: brightness(1.05);
}
button[type="submit"]:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.1s ease;
}


/* ------------------------------
   CAJA DINÁMICA DESCRIPCIÓN
   ------------------------------ */
#descripcion-orden {
    min-height: 200px;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #bfa680;
    border-radius: 4px;
    background: #fff8ee;

    font-size: 12px;
    color: #4a3a24;

    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}


/* ------------------------------
   BLOQUE SUPERIOR
   Imagen izquierda + texto derecha
   ------------------------------ */
.orden-descripcion-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.orden-descripcion-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orden-imagen {
    width: 130px;
    border-radius: 4px;
}

.orden-descripcion-texto {
    font-style: italic;
    font-size: 12px;
    color: #4a3a24;
}


/* ------------------------------
   BLOQUE INFERIOR – Bonus / Malus
   ------------------------------ */
.orden-bloque-habilidades {
    background: #fff1dd;
    border: 1px solid #d5bfa0;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orden-seccion-titulo {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.centrado {
    text-align: center;
    margin-bottom: 6px;
}


/* ------------------------------
   PLACEHOLDER para cuando no hay orden seleccionada
   ------------------------------ */
.mensaje-placeholder {
    font-style: italic;
    color: #7a6a55;
    font-size: 11px;
}


/* ------------------------------
   OVERLAY DE ERROR
   ------------------------------ */
#errorOverlay{
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.60);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 480ms ease, visibility 0s linear 480ms;
}
#errorOverlay.is-open{
  visibility: visible;
  pointer-events: auto;
  transition: opacity 480ms ease;
}
#errorOverlay.is-visible{
  opacity: 1;
}
#errorPanel{
  width: 300px;
  height: 200px;
  position: relative;
  box-sizing: border-box;
  background: url('/img/portada/minipanel.png') no-repeat 0 0;
  background-size: 300px 200px;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 520ms ease, opacity 520ms ease;
}
#errorOverlay.is-visible #errorPanel{
  transform: translateY(0) scale(1);
  opacity: 1;
}


/* ------------------------------
   COLORES PARA BONUS Y MALUS
   ------------------------------ */
.bonus-color {
    color: #008000;
    font-weight: bold;
}

.malus-color {
    color: #8b0000;
    font-weight: bold;
}
