/* =========================================================
   LOGIN - COLEGIO DE CONTADORES PÚBLICOS DE TUMBES
   ESTILO INSTITUCIONAL ROJO LADRILLO
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rojo: #941b1b;
    --rojo-oscuro: #701010;
    --rojo-claro: #b52b2b;

    --texto: #292525;
    --gris: #6e6866;

    --borde: #ddd8d5;

    --blanco: #ffffff;
}


/* =========================================================
   FONDO
========================================================= */

body {

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background:

        radial-gradient(
            circle at 90% 10%,
            rgba(148, 27, 27, .12),
            transparent 30%
        ),

        radial-gradient(
            circle at 5% 90%,
            rgba(148, 27, 27, .08),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #f5f2f0,
            #ffffff,
            #eee9e7
        );

    overflow-x: hidden;
}


/* =========================================================
   CONTENEDOR
========================================================= */

.auth-container {

    width: 100%;

    min-height: calc(100vh - 50px);

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   TARJETA PRINCIPAL
========================================================= */

.login-card {

    width: min(1180px, 100%);

    min-height: 700px;

    background: #fff;

    border-radius: 28px;

    overflow: hidden;

    position: relative;

    display: flex;

    box-shadow:

        0 30px 70px rgba(70, 25, 25, .18),

        0 5px 20px rgba(0, 0, 0, .06);
}


/* =========================================================
   PANEL IZQUIERDO ROJO
========================================================= */

.login-card::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 47%;

    background:

        linear-gradient(
            rgba(105, 10, 10, .92),
            rgba(156, 27, 27, .94)
        );

    clip-path:

        polygon(
            0 0,
            100% 0,
            87% 100%,
            0 100%
        );

    z-index: 0;
}


/* Decoración inferior */

.login-card::after {

    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    left: -230px;
    bottom: -240px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.18);

    box-shadow:

        0 0 0 50px rgba(255,255,255,.035),

        0 0 0 100px rgba(255,255,255,.025);

    z-index: 1;
}


/* =========================================================
   PANEL IZQUIERDO
========================================================= */

.login-header {

    position: relative;

    z-index: 3;

    width: 47%;

    min-height: 700px;

    padding:

        70px
        60px
        50px
        65px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: flex-start;

    text-align: left;
}


/* LOGO IZQUIERDO */

.login-logo {

    width: 105px;

    height: 105px;

    object-fit: contain;

    margin-bottom: 30px;

    filter:

        drop-shadow(
            0 7px 12px rgba(0,0,0,.25)
        );
}


/* TITULO IZQUIERDO */

.login-header h1 {

    color: #ffffff;

    font-size: 31px;

    font-weight: 700;

    line-height: 1.18;

    margin-bottom: 14px;
}


/* SUBTITULO */

.login-subtitle {

    color: rgba(255,255,255,.90);

    font-size: 16px;

    line-height: 1.5;

    margin-bottom: 5px;
}


/* VERSION */

.login-version {

    color: rgba(255,255,255,.62);

    font-size: 13px;
}


/* =========================================================
   SERVICIOS DEL COLEGIO
========================================================= */

.login-header::before {

    content:
        "Servicios en línea\A\A"
        "✓  Trámites rápidos y seguros\A"
        "✓  Información protegida\A"
        "✓  Atención al colegiado";

    white-space: pre-line;

    position: absolute;

    left: 65px;

    bottom: 105px;

    width: 320px;

    color: rgba(255,255,255,.92);

    font-size: 14px;

    line-height: 1.7;
}


/* FRASE */

.login-header::after {

    content:
        "Juntos por una contabilidad íntegra";

    position: absolute;

    left: 65px;

    bottom: 48px;

    color: rgba(255,255,255,.70);

    font-size: 13px;

    font-style: italic;
}


/* =========================================================
   PANEL DERECHO
========================================================= */

.login-panel {

    width: 53%;

    min-height: 700px;

    position: relative;

    z-index: 4;

    padding:

        42px
        75px
        35px
        75px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* =========================================================
   LOGO + NOMBRE + BIENVENIDO
========================================================= */

.login-brand {

    width: 100%;

    text-align: center;

    margin-bottom: 25px;
}


/* LOGO DERECHO */

.login-brand-logo {

    width: 100px;

    height: 100px;

    object-fit: contain;

    margin-bottom: 10px;

    filter:

        drop-shadow(
            0 5px 10px rgba(0,0,0,.12)
        );
}


/* NOMBRE */

.login-brand h2 {

    color: var(--rojo);

    font-size: 26px;

    font-weight: 800;

    line-height: 1.15;

    margin-bottom: 12px;
}


/* LINEA */

.login-line {

    width: 58px;

    height: 3px;

    background: var(--rojo);

    border-radius: 10px;

    margin:

        0 auto
        13px;
}


/* BIENVENIDO */

.login-brand h3 {

    color: var(--rojo);

    font-size: 23px;

    font-weight: 700;

    margin-bottom: 5px;
}


/* TEXTO */

.login-brand p {

    color: var(--gris);

    font-size: 15px;
}


/* =========================================================
   FORMULARIO
========================================================= */

.login-form {

    width: 100%;

    max-width: 470px;

    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* =========================================================
   CAMPOS
========================================================= */

.form-group {

    display: flex;

    flex-direction: column;
}


.form-group label {

    color: var(--texto);

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 8px;
}


/* INPUT */

.input-group {

    min-height: 56px;

    display: flex;

    align-items: center;

    background: #fafafa;

    border: 1px solid var(--borde);

    border-radius: 11px;

    padding: 0 14px;

    transition: .25s ease;
}


.input-group:focus-within {

    background: #ffffff;

    border-color: var(--rojo);

    box-shadow:

        0 0 0 4px
        rgba(148,27,27,.10);
}


/* ICONO */

.input-group > i {

    width: 26px;

    color: var(--rojo);

    font-size: 19px;

    flex-shrink: 0;
}


/* INPUT */

.input-group input {

    flex: 1;

    min-width: 0;

    border: none;

    outline: none;

    background: transparent;

    padding: 16px 10px;

    font-size: 15px;

    color: var(--texto);
}


.input-group input::placeholder {

    color: #aaa4a1;
}


/* =========================================================
   OJO
========================================================= */

.toggle-password {

    width: 35px;

    height: 40px;

    border: none;

    background: transparent;

    color: #77716e;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;
}


.toggle-password:hover {

    color: var(--rojo);
}


/* =========================================================
   BOTON INGRESAR
========================================================= */

.btn-login {

    width: 100%;

    min-height: 54px;

    border: none;

    border-radius: 11px;

    background:

        linear-gradient(
            135deg,
            var(--rojo),
            var(--rojo-claro)
        );

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:

        0 8px 18px
        rgba(148,27,27,.22);

    transition: .25s ease;
}


.btn-login:hover {

    background:

        linear-gradient(
            135deg,
            var(--rojo-oscuro),
            var(--rojo)
        );

    transform: translateY(-2px);

    box-shadow:

        0 12px 25px
        rgba(148,27,27,.28);
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {

    width: 100%;

    max-width: 470px;

    margin-top: 32px;

    padding-top: 20px;

    border-top: 1px solid #e7e2df;

    text-align: center;
}


.login-footer a {

    color: var(--rojo);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;
}


.login-footer a:hover {

    text-decoration: underline;

    color: var(--rojo-oscuro);
}


.login-footer-info {

    margin-top: 26px;

    color: #85807d;

    font-size: 12px;
}


.login-footer-info span {

    margin:

        0 10px;

    color: #bbb5b2;
}


/* =========================================================
   ALERTA
========================================================= */

.login-alert {

    position: absolute;

    z-index: 10;

    top: 30px;

    right: 75px;

    width: 470px;

    padding: 11px 15px;

    background: #fff0f0;

    color: #741414;

    border-left: 4px solid var(--rojo);

    border-radius: 8px;

    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    body {

        padding: 15px;
    }


    .login-card {

        max-width: 520px;

        min-height: auto;

        display: block;
    }


    .login-card::before {

        width: 100%;

        height: 230px;

        clip-path: none;
    }


    .login-card::after {

        display: none;
    }


    .login-header {

        width: 100%;

        min-height: 230px;

        height: 230px;

        padding: 25px;

        align-items: center;

        text-align: center;
    }


    .login-logo {

        width: 70px;

        height: 70px;

        margin-bottom: 8px;
    }


    .login-header h1 {

        font-size: 21px;

        text-align: center;
    }


    .login-subtitle {

        font-size: 14px;

        text-align: center;
    }


    .login-header::before,
    .login-header::after {

        display: none;
    }


    .login-panel {

        width: 100%;

        min-height: auto;

        padding:

            30px
            30px
            25px;
    }


    .login-brand-logo {

        width: 80px;

        height: 80px;
    }


    .login-brand h2 {

        font-size: 22px;
    }


    .login-brand h3 {

        font-size: 21px;
    }


    .login-form {

        max-width: 100%;
    }


    .login-footer {

        max-width: 100%;
    }


    .login-alert {

        position: relative;

        top: auto;

        right: auto;

        width: auto;

        margin: 20px 30px 0;
    }

}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 480px) {

    body {

        padding: 8px;
    }


    .login-card {

        border-radius: 18px;
    }


    .login-header {

        height: 205px;

        min-height: 205px;
    }


    .login-panel {

        padding:

            25px
            20px
            20px;
    }


    .login-brand-logo {

        width: 70px;

        height: 70px;
    }


    .login-brand h2 {

        font-size: 20px;
    }


    .login-brand h3 {

        font-size: 20px;
    }


    .login-form {

        gap: 17px;
    }


    .login-footer-info {

        margin-top: 20px;
    }

}