/* ============================================================
   PORTAL.CSS — Estilos del portal de login
   ============================================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #714B67 0%, #4a3344 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.portal-wrapper {
    width: 100%;
    max-width: 1000px;
}

.portal-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 550px;
}

/* Panel izquierdo (branding) */
.portal-left {
    background: linear-gradient(160deg, #714B67 0%, #4a3344 100%);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-brand {
    font-size: 3.5rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.portal-left h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.portal-left .lead {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 24px;
    color: white;
}

.portal-left hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 24px 0;
}

.portal-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-features li {
    padding: 6px 0;
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-features li i {
    color: #a98999;
    font-size: 1.1rem;
}

/* Panel derecho (formulario) */
.portal-right {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-right h3 {
    color: #1e1e1e;
    font-weight: 700;
}

.portal-right .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.portal-right .form-control {
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    transition: background 0.15s, border-color 0.15s;
}

.portal-right .form-control:focus {
    background: white;
    border-color: #714B67;
    box-shadow: 0 0 0 3px rgba(113, 75, 103, 0.15);
}

.portal-right .input-group-text {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    color: #666;
}

.btn-portal-primary {
    background: #714B67;
    color: white;
    border: none;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    transition: background 0.15s, transform 0.1s;
}

.btn-portal-primary:hover {
    background: #5d3d55;
    color: white;
    transform: translateY(-1px);
}

.portal-footer {
    margin-top: 24px;
    text-align: center;
}

.portal-footer small {
    font-size: 0.8rem;
}

/* Alertas */
.alert {
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 10px 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .portal-card {
        grid-template-columns: 1fr;
    }

    .portal-left {
        padding: 30px 24px;
        text-align: center;
    }

    .portal-brand {
        font-size: 2.5rem;
    }

    .portal-left h2 {
        font-size: 1.5rem;
    }

    .portal-features {
        text-align: left;
        max-width: 250px;
        margin: 0 auto;
    }

    .portal-right {
        padding: 30px 24px;
    }
}