/* =======================================================
   REDISEÑO PREMIUM - TEMA AZUL OSCURO (GLASSMORPHISM)
   ======================================================= */
.container-login {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #050b14 url('../img/pannel.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    z-index: 1;
}

/* Overlay Azul Profundo para toda la pantalla */
.container-login::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(6, 11, 25, 0.95) 0%, rgba(13, 27, 62, 0.85) 100%);
    z-index: -1;
}

/* ================= LEFT PANEL ================= */
.container-login .left-panel {
    flex: 1.2;
    padding: 80px;    
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
}

.left-panel .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.left-panel .logo img {
    width: 80px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    background: #fff;
    padding: 8px;
}

.left-panel .logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
}

.left-panel .hero-text {
    max-width: 500px;
    animation: fadeUp 1s ease-out;
}

.left-panel .descrih1tion {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px; /* Evita cortes en el texto con gradiente */
}

.left-panel .description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 35px;
}

.security-tips {
    margin-bottom: 35px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%);
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid #3b82f6;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.security-tips p {
    font-size: 0.9rem;
    color: #f8fafc;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-tips i {
    color: #60a5fa;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.left-panel .get-started {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.left-panel .get-started:hover {
    background: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
    color: #fff;
}

/* ================= RIGHT PANEL ================= */
.container-login .right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(10, 15, 35, 0.4); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.container-login .login-form {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.65); /* Cristal Oscuro */
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-form .login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-form .login-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.login-form .login-header .subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

.container-login .form-group {
    position: relative;
    margin-bottom: 28px;
}

.container-login .form-control-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.container-login .form-group:focus-within .form-control-icon {
    color: #60a5fa; /* Se ilumina a azul claro */
}

.right-panel [type="text"],
.right-panel [type="password"] {
    width: 100%;
    padding: 16px 15px 16px 52px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background-color: rgba(0, 0, 0, 0.25);
    font-size: 1rem;
    color: #ffffff !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.right-panel [type="text"]::placeholder,
.right-panel [type="password"]::placeholder {
    color: #64748b;
}

.right-panel [type="text"]:focus,
.right-panel [type="password"]:focus {
    border-color: #3b82f6;
    background-color: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), inset 0 0 10px rgba(59, 130, 246, 0.1);
    outline: none;
}

.right-panel .login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    letter-spacing: 1.5px;
    margin-top: 10px;
}

.right-panel .login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(29, 78, 216, 0.6);
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.right-panel .login-button:active {
    transform: translateY(0);
}

.verifica-sunat {
    text-align: center;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.verifica-sunat img {
    max-width: 140px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1); /* Pone el logo blanco para que contraste con el fondo oscuro */
}

.verifica-sunat img:hover {
    opacity: 0.9;
}

/* Animaciones */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 900px) {
    .container-login {
        flex-direction: column;
    }

    .container-login .left-panel {
        padding: 40px 20px;
        align-items: center;
        text-align: center;
        flex: none;
    }

    .left-panel .logo {
        flex-direction: column;
        gap: 10px;
    }

    .left-panel .descrih1tion {
        font-size: 2.5rem;
    }

    .container-login .right-panel {
        padding: 20px 0;
        background: rgba(6, 11, 25, 0.8);
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
        width: 100%;
    }

    .right-panel .login-form {
        padding: 30px 20px;
        box-shadow: none;
        background: transparent;
        border: none;
        backdrop-filter: none;
    }
}
