/* assets/css/login.css — diseño de acceso MicroGenLab */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.mg-login-body {
    background-color: #06101e;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
}

body.mg-login-body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(to right, #06101e 35%, rgba(6, 16, 30, 0.85) 60%, rgba(6, 16, 30, 0.4) 100%),
        url('https://images.unsplash.com/photo-1581093458791-9f3c3900df4b?q=80&w=1470&auto=format&fit=crop');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.page-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 5;
}

.presentation-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    padding: 60px 80px;
    z-index: 10;
}

.brand-info { margin-bottom: 40px; }

.mg-logo-wrap { margin-bottom: 15px; }

.main-logo {
    height: 90px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.mg-logo-fallback {
    width: 90px; height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, #00d2ff, #0066ff);
    color: #fff; font-weight: 800; font-size: 30px;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.presentation-panel h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 60%, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.system-subtitle {
    font-size: 0.95rem;
    color: #00d2ff;
    letter-spacing: 3px;
    font-weight: 600;
    margin-top: 5px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 500px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(13, 35, 66, 0.4);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #0055ff;
    backdrop-filter: blur(4px);
}

.module-icon { font-size: 1.4rem; }

.module-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #cbd5e0;
}

.system-description {
    font-size: 0.95rem;
    color: #a0aec0;
    line-height: 1.6;
    max-width: 520px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    padding: 40px 20px;
    z-index: 10;
}

.access-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
}

.top-icon {
    width: 75px;
    height: 75px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px currentColor);
}

.login-card {
    background-color: rgba(9, 22, 43, 0.97);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 35px 30px;
    width: 100%;
    min-height: 410px;
    position: relative;
    z-index: 1;
    isolation: isolate;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.login-card::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #00d2ff, #0055ff, #00ff88, #00d2ff);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 18px;
    animation: neonGradient 8s ease infinite;
}

@keyframes neonGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card form {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-inputs { display: flex; flex-direction: column; gap: 15px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background-color: #06101e;
    border: 1px solid #1e3a61;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus { border-color: #00d2ff; }

.form-actions { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 130, 255, 0.5); }

.btn-profesional { background: linear-gradient(135deg, #00d2ff, #0066ff); color: #ffffff; }

.card-links { display: flex; flex-direction: column; gap: 10px; margin-top: 5px; }

.btn-link {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #06101e;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-link:hover, .btn-link:active { transform: translateY(-1px); background-color: #06101e; }

.btn-link-credenciales { color: #00d2ff; border: 2px solid #00d2ff; }
.btn-link-credenciales:hover { border-color: #00ffff; box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4); }

.btn-link-soporte { color: #00ff88; border: 2px solid #00ff88; }
.btn-link-soporte:hover { border-color: #33ff99; box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4); }

.mg-login-error {
    background: #3a1414;
    border: 1px solid #e05d5d;
    color: #ffb3b3;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.mg-login-success {
    background: #0f2e22;
    border: 1px solid #00ff88;
    color: #9dffce;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

@media (max-width: 992px) {
    .presentation-panel { display: none; }
    .login-container { width: 100%; }
}
