﻿/* =============================================
   PROMED – Login Page Styles v6
   ============================================= */

:root {
    --promed-navy: #07006E;
    --promed-blue: #003366;
    --promed-green: #79c142;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    /* background: var(--promed-navy); */
     /*  background: #2da83f; */
}

/* ASP.NET WebForms genera un <form> que rompe el flex si no tiene height */
form {
    height: 100%;
    display: block;
}

/* ─── WRAPPER: ocupa toda la pantalla, centra la tarjeta ─── */
.login-wrapper {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

/* ─── TARJETA ─── */
.login-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 780px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.40);
    /* Sin height fijo: se adapta al contenido */
}

/* ─── PANEL IZQUIERDO (imagen) ─── */
.login-aside {
    display: none;
    width: 48%;
    flex-shrink: 0;
    background: var(--promed-navy);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@media (min-width: 768px) {
    .login-aside {
        display: flex;
    }
}

.login-aside img.aside-banner {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

/* ─── PANEL DERECHO (formulario) ─── */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px 36px;
}

.login-box {
    width: 100%;
    max-width: 260px;
}

/* Logo */
.login-logo {
    margin-bottom: 22px;
    text-align: center;
}

    .login-logo img {
        height: 70px;
        width: auto;
    }

/* Encabezado */
.login-header {
    margin-bottom: 22px;
}

    .login-header h1 {
        font-size: 19px;
        font-weight: 800;
        color: var(--promed-navy);
        margin: 0 0 5px;
        letter-spacing: -0.3px;
    }

    .login-header p {
        font-size: 12px;
        color: var(--text-light);
        margin: 0;
    }

/* ─── CAMPOS ─── */
.form-group-modern {
    margin-bottom: 14px;
}

    .form-group-modern label {
        display: block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-dark);
        margin-bottom: 5px;
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        left: 11px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 13px;
        pointer-events: none;
    }

.form-control-modern {
    width: 100%;
    padding: 9px 10px 9px 33px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

    .form-control-modern::placeholder {
        color: #cbd5e1;
    }

    .form-control-modern:focus {
        outline: none;
        border-color: var(--promed-blue);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.08);
    }

/* ─── OPCIONES ─── */
.form-options-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 16px;
    font-size: 11px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
}

    .custom-checkbox input[type="checkbox"] {
        accent-color: var(--promed-blue);
        width: 13px;
        height: 13px;
    }

.forgot-link {
    color: var(--promed-blue);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* ─── BOTÓN ─── */
.btn-login-modern {
    width: 100%;
    padding: 11px;
    background: var(--promed-navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

    .btn-login-modern:hover {
        background: var(--promed-blue);
        transform: translateY(-1px);
        box-shadow: 0 5px 16px rgba(7, 0, 110, 0.22);
    }

/* ─── REGISTRO ─── */
.register-row {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-light);
}

.link-registrate {
    color: var(--promed-blue);
    font-weight: 700;
    text-decoration: none;
}

    .link-registrate:hover {
        text-decoration: underline;
    }

/* ─── ERROR ─── */
.error-message-container {
    margin-top: 10px;
    color: #e11d48;
    font-size: 11px;
    text-align: center;
    font-weight: 500;
}

/* ─── FOOTER ─── */
.login-footer {
    margin-top: 20px;
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
}

/* ─── MÓVIL ─── */
@media (max-width: 767px) {
    .login-wrapper {
        padding: 8px;
        align-items: center;
    }

    .login-card {
        max-width: 95%;
        border-radius: 14px;
    }

    .login-main {
        padding: 20px;
    }

    .login-box {
        max-width: 100%;
    }
}


/* Tarjeta de registro: un poco más ancha que el login por los campos extra */
.register-card {
    width: 100%;
    max-width: 340px;
}

/* Alerta WhatsApp */
.wsp-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fffbe6;
    border: 1.5px solid #ffe066;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #7a6000;
    margin-top: 16px;
}

    .wsp-alert a {
        flex-shrink: 0;
        background: #25D366;
        color: #fff;
        border: none;
        border-radius: 7px;
        padding: 6px 12px;
        font-size: 13px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 5px;
        font-weight: 600;
    }

        .wsp-alert a:hover {
            background: #1ebe5d;
        }

/* Dos botones seguidos */
.btn-login-modern + .btn-login-modern {
    margin-top: 10px;
    background: #fff;
    color: var(--promed-navy, #07006E);
    border: 1.5px solid #07006E;
}

    .btn-login-modern + .btn-login-modern:hover {
        background: #f0f4ff;
        transform: translateY(-1px);
        box-shadow: none;
    }

/* Mensaje de respuesta */
.msg-container {
    margin-top: 14px;
    font-size: 12px;
    text-align: center;
}

/* Link volver al login */
.back-login {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #64748b;
}

    .back-login a {
        color: #003366;
        font-weight: 700;
        text-decoration: none;
    }

        .back-login a:hover {
            text-decoration: underline;
        }



.login-icon {
    font-size: 3.5rem;
    color: #002244;
}

.btn-azul {
    background-color: #0A0099;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}









