/* Reset mínimo */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: #0f172a;
}

/* Envoltorio principal: centra todo en pantalla */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout dos columnas */
.login-layout {
    width: 100%;
    max-width: 1100px;
    min-height: 500px;
    display: flex;
    align-items: center;      /* centrado vertical */
    justify-content: center;
    padding: 2rem;
}

/* Columna izquierda */
.login-column {
    flex: 1.1;
    display: flex;
    justify-content: center;
}

/* Columna derecha */
.right-column {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Robot */
.robot-wrapper {
    padding-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;      /* 🔹 necesario para la sombra */
}

/* Sombra ovalada bajo el robot del login */
.robot-wrapper::after {
    content: "";
    position: absolute;
    bottom: 4px;  /* ajusta si hace falta subir/bajar la sombra */
    left: 50%;
    transform: translateX(-50%);
    width: 185%;        /* ancho de la sombra respecto al robot */
    max-width: 270px;
    height: 30px;
    background: radial-gradient(
        ellipse at center,
        rgba(5, 8, 15, 0.25) 10%,
        rgba(7, 11, 20, 0) 70%
    );
    pointer-events: none;
}

.robot-image {
    max-height: 620px;   /* 🔹 más grande como quieres */
    max-width: 100%;
    object-fit: contain;
}

/* Ring + login */
.login-ring-wrapper {
    position: relative;
    width: 420px;   /* 🔹 anillo más grande */
    height: 420px;  /* 🔹 anillo más grande */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ring contenedor */
.ring {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Los 3 "anillos" animados */
.ring i {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    transition: 0.5s;
}

.ring i:nth-child(1) {
    border-color: rgba(14, 165, 233, 0.8);   /* azul */
    animation: ring-rotate-1 9s linear infinite;
}

.ring i:nth-child(2) {
    border-color: rgba(20, 184, 166, 0.8);   /* turquesa */
    animation: ring-rotate-2 11s linear infinite;
}

.ring i:nth-child(3) {
    border-color: rgba(244, 63, 94, 0.7);    /* fucsia suave */
    animation: ring-rotate-3 13s linear infinite;
}

@keyframes ring-rotate-1 {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(180deg) scale(1.02); }
    100% { transform: rotate(360deg); }
}

@keyframes ring-rotate-2 {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(-200deg) scale(1.04); }
    100% { transform: rotate(-360deg); }
}

@keyframes ring-rotate-3 {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(220deg) scale(1.06); }
    100% { transform: rotate(360deg); }
}

/* Caja de login en el centro del ring – sin panel sólido */
.login-box {
    position: relative;
    width: 80%;
    padding: 1.25rem 1rem 1.1rem;
    border-radius: 1.25rem;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

/* Solo subtítulo */
.login-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

/* Flash messages */
.flash-messages {
    margin-bottom: 0.75rem;
    text-align: left;
    font-size: 0.85rem;
}

.flash {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.flash-error {
    background: #fee2e2;
    color: #b91c1c;
}

/* Formulario */
.form-group {
    margin-bottom: 0.75rem;
}

.form-group input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9fafb;
}

.form-group input:focus {
    border-color: #0ABAB5;
    box-shadow: 0 0 0 1px rgba(10, 186, 181, 0.2);
    background-color: #ffffff;
}

/* Botón principal */
.btn-primary {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, #0ABAB5, #0EA5E9);
    color: #ffffff;
    margin-top: 0.25rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
    opacity: 0.95;
}

/* Links inferiores */
.login-links {
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.light-link {
    color: #64748b;
    text-decoration: none;
}

.light-link:hover {
    color: #0ABAB5;
}

/* Responsive */
@media (max-width: 900px) {
    .login-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .right-column {
        display: none; /* en móvil ocultamos el robot */
    }

    .login-ring-wrapper {
        width: 320px;
        height: 320px;
    }
}
