/* Variables de diseño */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --border-dark: #d1d5db;
    --bg: #f9fafb;
    --bg-dark: #f3f4f6;
    --white: #ffffff;
    --error: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --rounded-sm: 0.25rem;
    --rounded: 0.5rem;
    --rounded-md: 0.75rem;
    --rounded-lg: 1rem;
    --rounded-full: 9999px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.5;
}

/* Layout principal */
.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-illustration {
    flex: 1;
   background: #11315B;
background: linear-gradient(90deg, rgba(17, 49, 91, 1) 1%, rgba(30, 95, 143, 1) 17%, rgba(36, 115, 165, 1) 70%, rgba(33, 110, 209, 1) 92%);color: var(--white);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.illustration-content {
    max-width: 480px;
    z-index: 2;
}

.illustration-img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.auth-illustration h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-illustration p {
    font-size: 1rem;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 2rem;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--rounded-full);
    font-size: 0.875rem;
    backdrop-filter: blur(5px);
}

.auth-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form-wrapper {
    max-width: 420px;
    width: 100%;
}

.logo-mobile {
    display: none;
    margin-bottom: 2rem;
    text-align: center;
}

.logo-mobile img {
    height: 40px;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Formulario */
.auth-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group.floating input {
    height: 56px;
    padding: 1.5rem 1rem 0.5rem 2.5rem;
}

.input-group.floating label {
    position: absolute;
    top: 1rem;
    left: 2.5rem;
    color: var(--text-light);
    transition: all 0.2s ease;
    pointer-events: none;
}

.input-group.floating input:focus~label,
.input-group.floating input:not(:placeholder-shown)~label {
    top: 0.5rem;
    left: 2.5rem;
    font-size: 0.75rem;
    color: var(--primary);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    font-size: 1rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary);
}

input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--rounded);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Opciones del formulario */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input {
    width: auto;
    padding: 0;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Botón principal */
.auth-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--rounded);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.auth-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.auth-button:active {
    transform: translateY(0);
}

.button-icon {
    transition: transform 0.2s;
}

.auth-button:hover .button-icon {
    transform: translateX(3px);
}

.button-loader {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.25rem;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}

/* Divisor */
.auth-divider {
    position: relative;
    margin: 1.5rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 0 1rem;
}



/* Footer del formulario */
.auth-footer {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.register-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-illustration {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .social-auth {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Efectos especiales */


.auth-illustration::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}