/*
 * Diseño del Portal. Se monta sobre site.css (campos, alerts y tipografía comunes) y
 * reemplaza el chrome: split-screen en vez del panel centrado del BackOffice, labels
 * ocultos con ícono, y botón full-width.
 *
 * La paleta sale entera de los tokens de site.css (M1 Specialty Brand Color
 * Palette). Acá no se define ningún color propio: lo que cambia es la
 * estructura, no el color.
 */

body.portal {
    background: var(--m1-white);
}

.split {
    display: flex;
    min-height: 100vh;
}

.split-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 100%;
    max-width: 100%;
    padding: 40px 32px;
    background: var(--m1-white);
}

.split-art {
    display: none;
    flex: 1;
    background-image: url("../img/login-bg-gray-guilloche.svg");
    background-size: cover;
    background-position: center;
    opacity: .25;
}

@media (min-width: 992px) {
    .split-form {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .split-art {
        display: block;
    }
}

/* El contenido va centrado dentro de la columna, sin la caja del BackOffice. */
.portal .brand {
    padding-top: 0;
    padding-bottom: 20px;
}

.portal .login-container {
    max-width: 380px;
    margin: 0 auto;
    padding: 0;
}

.portal .login-container h1 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
}

.portal .panel {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Inputs con ícono al costado, como los input-group del tema original. */
.portal .field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.portal .field {
    position: relative;
    margin-bottom: 16px;
}

.portal .field input[type="text"],
.portal .field input[type="email"],
.portal .field input[type="password"] {
    padding: 12px 12px 12px 42px;
    border-width: 0 0 1px 0;
    border-radius: var(--m1-radius);
    font-size: 15px;
}

.portal .field input:focus {
    box-shadow: none;
    border-bottom-color: var(--tc-primary);
}

.portal .field::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 14px;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    opacity: .45;
    pointer-events: none;
    z-index: 1;
}

.portal .field.icon-user::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c0d0f'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4 0-9 2-9 5v3h18v-3c0-3-5-5-9-5z'/%3E%3C/svg%3E");
}

.portal .field.icon-lock::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c0d0f'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm0 2a3 3 0 0 1 3 3v3H9V7a3 3 0 0 1 3-3z'/%3E%3C/svg%3E");
}

/* La hilera de acciones del BackOffice se convierte en un botón de ancho completo. */
.portal .actions {
    display: block;
    margin-top: 20px;
}

/* Mismo botón de marca que el BackOffice, sólo que a todo el ancho. El oro,
   los inset y el destello los pone .btn-primary en site.css. */
.portal .btn-primary {
    display: block;
    width: 100%;
    font-size: 12px;
    padding: 14px 24px;
}

.portal .form-links {
    padding-top: 12px;
}

.portal .form-links a {
    color: var(--tc-text);
    text-decoration: underline;
    font-size: 13px;
}

.portal .recovery-links {
    text-align: right;
    padding-top: 12px;
    margin: 0;
}

.portal .recovery-links a {
    color: var(--tc-text);
    text-decoration: underline;
    margin-left: 12px;
    font-size: 13px;
}

.portal .legal {
    list-style: none;
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 0;
    margin: 40px 0 0;
}

.portal .legal a {
    color: var(--tc-muted);
    font-size: 12px;
    text-decoration: none;
}

.portal .legal a:hover {
    text-decoration: underline;
}
