﻿/* =========================================================
   RESET Y CONFIGURACIÓN DE PANTALLA
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #041128;
}

/* =========================================================
   CONTENEDOR Y OVERLAY
========================================================= */
.login-container {
    width: 100%;
    height: 100vh;
    background-image: url('/images/backgrounds/machu-picchu.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    position: relative;
}

.login-overlay {
    width: 100%;
    height: 100vh;
    background: linear-gradient( 90deg, rgba(4, 17, 40, 0.88) 0%, rgba(4, 17, 40, 0.58) 40%, rgba(4, 17, 40, 0.18) 100% );
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

/* =========================================================
   ENVOLTORIO CENTRAL
========================================================= */
.login-content-wrapper {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 0 60px;
}

/* =========================================================
   LADO IZQUIERDO
========================================================= */
.left-wrapper {
    width: 38%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.right-wrapper {
    width: 68%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 0;
}

.brand-logo {
    font-size: 48px;
    margin-bottom: 15px;
    color: #3b82f6;
}

.brand-container h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    color: white;
}

.brand-container span {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.85;
    display: block;
    margin-top: 4px;
    color: white;
}

.brand-line {
    width: 50px;
    height: 3px;
    background: #3b82f6;
    margin: 25px 0;
    border-radius: 50px;
}

.brand-container h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.brand-container p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.78;
    color: rgba(255,255,255,0.85);
}

/* =========================================================
   LOGIN RIGHT
========================================================= */
.login-right {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.login-left {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    color: white;
    animation: fadeInLeft 1s ease forwards;
}

/* =========================================================
   CARD LOGIN
========================================================= */
.login-card {
    width: 430px;
    background: rgba(255,255,255,0.93);
    border-radius: 26px;
    padding: 28px 35px 35px 35px;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
    animation: fadeInUp 1s ease forwards;
    transition: all .3s ease;
}

    .login-card:hover {
        transform: translateY(-2px);
    }

/* =========================================================
   LOGO LOGIN
========================================================= */
.login-icon {
    width: 130px;
    height: 130px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-img {
    width: 120px;
    height: auto;
    transform: scale(2.0);
    object-fit: contain;
    display: block;
}

/* =========================================================
   TITULOS LOGIN
========================================================= */
.login-card h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #172554;
    margin-bottom: 6px;
}

.login-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 28px;
    font-size: 15px;
}

/* =========================================================
   INPUTS
========================================================= */
.input-group {
    width: 100%;
    height: 54px;
    border: 1px solid #d6dce5;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 16px;
    background: #ffffff;
    transition: all .3s ease;
}

/*    .input-group:focus-within {
        border-color: #2563eb;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.10);
        transform: translateY(-1px);
        transition: all .25s ease;
    }*/
    .input-group:focus-within {
        border-color: #e5e7eb;
        box-shadow: 0 3px 8px rgba(0,0,0,0.04);
    }
    .input-group i {
        color: #6b7280;
        font-size: 16px;
    }

    .input-group input,
    .input-group select {
        width: 100%;
        border: none !important;
        outline: none;
        margin-left: 12px;
        font-size: 15px;
        background: transparent;
        /*color: #1f2937;*/
        box-shadow: none !important;
    }
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 1000px white inset !important;
        box-shadow: 0 0 0 1000px white inset !important;
        -webkit-text-fill-color: #1f2937 !important;
        transition: background-color 9999s ease-in-out 0s;
    }
/* =========================================================
   OPCIONES LOGIN
========================================================= */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

    .login-options label {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #374151;
        cursor: pointer;
    }

    .login-options a {
        text-decoration: none;
        color: #2563eb;
        font-weight: 600;
    }

/* =========================================================
   BOTON LOGIN
========================================================= */
.btn-login {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient( 135deg, #2563eb, #1d4ed8 );
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(37,99,235,0.28);
}

    .btn-login:hover {
        transform: translateY(-2px);
        background: linear-gradient( 135deg, #1d4ed8, #1e40af );
        box-shadow: 0 14px 30px rgba(37,99,235,0.35);
    }

/* =========================================================
   FOOTER CARD
========================================================= */
.card-brand-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

    .card-brand-footer .brand-item {
        font-size: 11px;
        font-weight: 700;
        color: #6b7280;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .card-brand-footer .divider-line {
        width: 1px;
        height: 20px;
        background-color: #d1d5db;
    }

/* =========================================================
   FOOTER GLOBAL
========================================================= */
.global-footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 54px;
    background: linear-gradient( 90deg, rgba(15, 35, 75, 0.55), rgba(25, 55, 110, 0.40), rgba(15, 35, 75, 0.55) );
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    color: rgba(255,255,255,0.92);
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.12);
}

    .global-footer-bar i {
        color: rgba(255,255,255,0.95);
    }

    .global-footer-bar .footer-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .global-footer-bar .divider-line-global {
        width: 1px;
        height: 16px;
        background-color: rgba(255,255,255,0.25);
    }


.card-brand-footer .brand-item {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* LOGO FOOTER */
.footer-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: .85;
}

/* =========================================================
   ANIMACIONES
========================================================= */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media(max-width: 1024px) {

    .login-content-wrapper {
        justify-content: center;
    }

    .login-left {
        display: none;
    }

    .login-card {
        width: 95%;
        max-width: 430px;
    }
}

.mountain-svg {
    width: 240px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 12px rgba(255,255,255,.15));
}

    .mountain-svg path {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
        animation: drawLine 3s ease forwards;
    }
/*.mountain-logo {
    width: 240px;
    height: auto;
    margin-bottom: 18px;
    opacity: .96;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.12));
    animation: fadeMountain 1.8s ease;
}*/

.mountain-logo {
    width: 180px;
    height: auto;
    margin-bottom: 18px;
    opacity: .92;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.12));
    animation: fadeMountain 1.5s ease;
}

@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0px);
    }
}
@keyframes fadeMountain {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(.95);
    }

    to {
        opacity: .96;
        transform: translateY(0) scale(1);
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}
