/* ============================================
   ZETA80 LINK - ESTILOS DE LOGIN
   Diseño moderno y elegante
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colores principales basados en paleta Zeta80 - ajustados para complementar el logo */
    --zeta-primary: #0f172a;
    --zeta-primary-dark: #020617;
    --zeta-primary-light: #1e293b;
    --zeta-accent: #3b82f6;
    --zeta-accent-light: #60a5fa;
    --zeta-secondary: #475569;
    --zeta-dark: #0f172a;
    --zeta-dark-light: #1e293b;
    --zeta-gray: #64748b;
    --zeta-gray-light: #f1f5f9;
    --zeta-border: #e2e8f0;
    --zeta-success: #10b981;
    --zeta-error: #ef4444;
    --zeta-white: #ffffff;
    --zeta-shadow: rgba(15, 23, 42, 0.1);
    --zeta-shadow-lg: rgba(15, 23, 42, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

a {
    color: var(--zeta-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--zeta-primary-dark);
    text-decoration: none;
}

.wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0;
}

.form-signin {
    background: var(--zeta-white);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
    padding: 40px 40px 48px;
    margin: 0 auto;
    position: relative;
}

/* Logo y título en la misma línea */
.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-top: 8px;
}

.login-logo {
    max-width: 80px;
    width: 80px;
    height: auto;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.02);
}

.form-signin-heading {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-align: left;
    letter-spacing: -0.3px;
    color: #412A22; /* Color marrón del logo */
    color: #5B59EC;
    flex-shrink: 0;
}

.form-signin .form-control {
    position: relative;
    font-size: 15px;
    height: 48px;
    padding: 12px 16px;
    border: 1.5px solid var(--zeta-border);
    border-radius: 8px;
    background-color: var(--zeta-white);
    color: var(--zeta-dark);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.form-signin .form-control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.06);
    z-index: 2;
}

.form-signin .form-control::placeholder {
    color: var(--zeta-gray);
    opacity: 1;
}

.form-signin input[type="text"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid var(--zeta-border);
    margin-bottom: -2px;
}

.form-signin input[type="password"] {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 1px solid var(--zeta-border);
    margin-bottom: 24px;
}

/* Recaptcha */
.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Botón de login - colores acordes con el logo */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
    border: none;
    border-radius: 10px;
    color: var(--zeta-white);
    font-size: 16px;
    font-weight: 600;
    height: 50px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #6366f1 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

/* Checkbox de condiciones */
#accept-conditions {
    margin: 12px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#accept-conditions input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--zeta-accent);
    flex-shrink: 0;
}

#accept-conditions label {
    font-size: 13px;
    color: var(--zeta-secondary);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    user-select: none;
    font-weight: 400;
}

.conditions-link {
    color: var(--zeta-accent);
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.conditions-link:hover {
    color: var(--zeta-accent-light);
    text-decoration-color: var(--zeta-accent-light);
}

/* Footer del login */
.login-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--zeta-border);
    text-align: center;
}

.login-footer p {
    margin: 0;
    font-size: 13px;
    color: var(--zeta-gray);
}

.footer-link {
    color: var(--zeta-accent);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--zeta-accent-light);
}

/* Mensaje de IP */
.ip-notice {
    margin-top: 20px;
    font-size: 12px;
    color: var(--zeta-secondary);
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.ip-notice strong {
    color: var(--zeta-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Alertas */
.alert {
    border-radius: 8px;
    border: none;
    padding: 16px;
    margin-bottom: 24px;
}

.alert-danger {
    background-color: #fef2f2;
    color: var(--zeta-error);
    border-left: 4px solid var(--zeta-error);
}

.alert-danger strong {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .form-signin {
        padding: 32px 24px;
        border-radius: 12px;
    }
    
    .form-signin-heading {
        font-size: 28px;
    }
    
    body {
        padding: 10px;
    }
}

/* Animaciones suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-signin {
    animation: fadeIn 0.5s ease-out;
}

/* Mejoras de accesibilidad */
.form-signin .form-control:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.4);
    outline-offset: 2px;
}

/* Eliminar estilos antiguos de secure-connection */
#secure-connection {
    display: none;
}
