/* Variables de colores para fácil personalización */
:root {
    --primary-red: #E50914;
    --secondary-dark: #141414;
    --light-dark: #222222;
    --text-white: #FFFFFF;
    --text-grey: #a0a0a0;
}

/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Formas abstractas del fondo - ajustadas a la nueva paleta */
.bg-shapes .circle {
    position: absolute;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.bg-shapes .circle-small {
    width: 30px;
    height: 30px;
    top: 20%;
    left: 10%;
}

.bg-shapes .circle-large {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 0;
    opacity: 0.5;
}

.bg-shapes .plus {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.bg-shapes .plus::before,
.bg-shapes .plus::after {
    content: '';
    position: absolute;
    background-color: rgba(229, 9, 20, 0.1);
}

.bg-shapes .plus::before {
    width: 100%;
    height: 5px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.bg-shapes .plus::after {
    width: 5px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.bg-shapes .plus-1 {
    top: 15%;
    left: 35%;
}

.bg-shapes .plus-2 {
    top: 55%;
    left: 20%;
}

/* Estructura del layout principal con Bootstrap */
.login-container {
    width: 90%;
    max-width: 1200px;
    background-color: var(--secondary-dark);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.left-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    /* ¡Cambio realizado aquí! */
    padding: 20px;
}

.left-panel img {
    max-width: 70%;
    height: auto;
    transform: scale(1.1);
    display: block;
}

.right-panel {
    background-color: var(--light-dark);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 50px;
}

/* Estilos de los campos del formulario */
.form-control {
    background: #333;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-white);
    padding: 15px 20px;
}

.form-control::placeholder {
    color: var(--text-grey);
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.5);
    border-color: transparent;
    background-color: #444;
}

/* Contenedor del campo de clave con el ícono */
.password-container {
    position: relative;
}

.password-container .form-control {
    padding-right: 50px;
    /* Deja espacio para el ícono */
}

/* Estilo y posicionamiento del ícono del ojo */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-grey);
    font-size: 1.2rem;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--text-white);
}

/* Reglas para el checkbox "Recordarme" */
.form-check {
    margin-bottom: 20px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--text-grey);
    background-color: #333;
    cursor: pointer;
    margin-top: 0;
    margin-right: 8px;
}

.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.form-check-label {
    color: var(--text-grey);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Estilos de los botones principales */
.btn-custom {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-red);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: #CC0811;
    color: var(--text-white);
}

/* Estilos del botón secundario (Crear Cuenta) */
.btn-outline-custom {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--primary-red);
    color: var(--text-white);
}

/* Estilos del modal */
.modal-content {
    background-color: var(--light-dark);
    color: var(--text-white);
    border: none;
    border-radius: 10px;
}

.modal.fade .modal-dialog {
  transform: translateY(-50px);
  transition: all .3s ease-out;
}
.modal.fade.show .modal-dialog {
  transform: translateY(0);
}

.btn-close {
    filter: invert(1);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.forgot-password a:hover {
    text-decoration: underline;
    color: var(--primary-red);
}

.code-input {
  width: 40px;
  height: 45px;
  margin: 0 4px;
  text-align: center;
  font-size: 1.5rem;

  color: #ffffff;            /* texto blanco */
  background-color: #333333; /* fondo oscuro visible */
  border: 1px solid #555;    
  border-radius: 6px;
}

.code-input:focus {
  outline: none;
  border-color: #ff0000;     /* borde rojo al enfocar */
}

/* Media Queries para diseño responsivo */
@media (max-width: 768px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        padding: 30px 20px;
        border-radius: 20px;
    }
}