:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --bg-dark: #0c0c0c;
    --bg-form: #111111;
    --bg-input: rgba(255, 255, 255, 0.04);
    --text-main: #f0f0f0;
    --text-muted: #8a8a8a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(59, 130, 246, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* =====================
   Layout principal
   ===================== */
.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* =====================
   Lado izquierdo: Animación interactiva
   ===================== */
.login-visual {
    flex: 1.3;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1000px 600px at 70% 20%, rgba(59, 130, 246, 0.12), transparent 60%),
        radial-gradient(800px 500px at 20% 85%, rgba(30, 158, 255, 0.08), transparent 60%),
        #05070c;
}

#particle-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.9;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

/* Badge "Panel privado" */
.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
}

.visual-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-content > p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 460px;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

/* Stats */
.visual-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.vs-item {
    display: flex;
    flex-direction: column;
}

.vs-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.vs-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vs-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

/* =====================
   Lado derecho: Formulario
   ===================== */
.login-form-area {
    flex: 0.75;
    background-color: var(--bg-form);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
}

.login-form-box {
    width: 100%;
    max-width: 400px;
}

/* Header */
.form-header {
    margin-bottom: 2.5rem;
}

.form-logo {
    height: 38px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.form-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =====================
   Botón Google
   ===================== */
.google-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #fff;
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.75rem;
    text-decoration: none;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.google-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.google-arrow {
    font-size: 1.2rem;
    margin-left: auto;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
}

.google-btn:hover .google-arrow {
    opacity: 0.8;
    transform: translateX(3px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: 0.8rem;
    gap: 0.75rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* =====================
   Campos del formulario
   ===================== */
.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #555;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 0.85rem 2.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-input::placeholder {
    color: #444;
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: var(--text-muted);
}

/* =====================
   Opciones del form
   ===================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.remember-me input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 16px;
    width: 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remember-me:hover input ~ .checkmark {
    border-color: var(--border-focus);
}

.remember-me input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    display: none;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.remember-me input:checked ~ .checkmark:after {
    display: block;
}

/* =====================
   Botón de login
   ===================== */
.btn-login {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-login i {
    font-size: 1.3rem;
}

/* Footer */
.footer-note {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.78rem;
    color: #ffffff;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 992px) {
    .login-visual {
        display: none;
    }
    .login-form-area {
        flex: 1;
        padding: 2.5rem 1.5rem;
        border-left: none;
    }
}
