/* ── Variables ── */
:root {
  --color-primary: #1d3557;
  --color-secondary: #EA8217;
  --color-white: #FFFFFF;
}

/* ── Fondo con capa oscura ── */
body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    background: url('img/Rectangle 179.png') no-repeat center center / cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* ── Contenedor principal ── */
.login-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

/* ── Card ── */
.login-box {
    display: flex;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 90%;
    height: 560px;
    align-items: stretch;
}

.form-section,
.image-section {
    height: 100%;
}

/* ── Sección formulario ── */
.form-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.logo {
    width: 120px;
    margin: 0 auto 20px;
}

h2 {
    color: var(--color-primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

p {
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Inputs ── */
input {
    width: 100%;
    padding: 12px 18px;
    margin: 8px 0;
    border: 1px solid var(--color-primary);
    border-radius: 25px;
    background-color: #f1f1f1;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    color: #333;
}

input::placeholder {
    color: #999;
}

input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 8px rgba(234, 130, 23, 0.25);
    background-color: #fff;
}

/* ── Campo contraseña ── */
.password-container {
    position: relative;
}

.password-container input {
    padding-right: 40px;
}

.password-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    transition: color 0.3s;
}

.password-container i:hover {
    color: var(--color-secondary);
}

/* ── Botón ── */
button {
    width: 85%;
    max-width: 280px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 20px;
    padding: 11px 40px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 6px 20px rgba(234, 130, 23, 0.3);
}

button:hover {
    background-color: #d4711a;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(234, 130, 23, 0.4);
}

/* ── Enlace olvidaste contraseña ── */
.forgot-password {
    text-align: right;
    margin: 5px 0 15px 0;
    font-size: 13px;
}

.forgot-password a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* ── Links extra (Regístrate) ── */
.extra-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 13px;
    flex-wrap: wrap;
}

.extra-links p {
    margin: 0;
}

.extra-links a {
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.extra-links a:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}

/* ── Sección imagen ── */
.image-section {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.image-section img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.image-section:hover img {
    transform: translate(-50%, -50%) scale(1.05);
    filter: brightness(0.85);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        width: 90%;
        height: auto;
    }

    .image-section {
        height: 200px;
    }

    .form-section {
        padding: 30px;
    }
}




/* ===================================================================================
   MODAL REGISTRO 
   ================================================================================= */

#registroModal .modal-content {
    border-radius: 20px;
    border: 1px solid #E0E0E0;
    background-color: #FFFFFF;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

#registroModal .modal-header {
    border-bottom: 1px solid #E0E0E0;
    padding: 20px 24px;
    background-color: #F8F9FA;
}

#registroModal .modal-title {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2D4059;
}

/* Fondo suave del body del modal */
#registroModal .modal-body {
    background-color: #F8F9FA;
    padding: 32px 24px;
}

/* ================================
   TARJETAS
   ================================ */

.card-registro {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 18px;
    transition: all 0.25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Línea superior decorativa */
.card-registro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #EA8217);
}

/* Hover premium */
.card-registro:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: #EA8217;
}

/* ================================
   ICONOS (EMOJIS)
   ================================ */

.icono-registro {
    font-size: 56px;
    margin-bottom: 12px;
    line-height: 1;
    text-align: center;
}

/* ================================
   TEXTO
   ================================ */

.card-registro .card-title {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2D4059;
    margin-bottom: 8px;
}

.card-registro .card-text {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #2B2B2B;
    margin-bottom: 20px;
}

/* ================================
   BOTÓN AVENTURA GO
   ================================ */

.btn-aventura {
    background-color: #EA8217;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-aventura:hover {
    background-color: #2D4059;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* ================================
   FONDO GLASSMORPHISM DEL MODAL
   ================================ */

#registroModal .modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 224, 224, 0.8);
}

/* Oscurecer ligeramente el fondo detrás del modal */
.modal-backdrop.show {
    opacity: 0.6;
}

/* ================================
   ANIMACIÓN DE ENTRADA TARJETAS
   ================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-registro {
    animation: fadeUp 0.6s ease forwards;
}

/* Pequeño delay en cascada */
.card-registro:nth-child(1) {
    animation-delay: 0.1s;
}

.card-registro:nth-child(2) {
    animation-delay: 0.2s;
}

.card-registro:nth-child(3) {
    animation-delay: 0.3s;
}

/* ================================
   HOVER: CARD SELECCIONADA
   ================================ */

.card-registro {
    cursor: pointer;
}

.card-registro:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: #EA8217;
}

/* Resaltar icono cuando se hace hover */
.card-registro:hover .icono-registro {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Resaltar botón en hover de la card */
.card-registro:hover .btn-aventura {
    background-color: #2D4059;
}

/* ================================
   RESPONSIVE modal registrate
   ================================ */

@media (max-width: 768px) {
    .icono-registro {
        font-size: 48px;
    }

    .card-registro .card-title {
        font-size: 18px;
    }
}

