/* =======================================================
   TEMA NEGRO Y ROJO - GRUPO CACERES MOTORS
   ======================================================= */
.container-login {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0a0a0a url('../img/pannel.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    z-index: 1;
}

/* Overlay Negro/Rojo */
.container-login::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.97) 0%, rgba(30, 0, 0, 0.92) 60%, rgba(150, 0, 0, 0.5) 100%);
    z-index: -1;
}

/* Línea decorativa lateral izquierda */
.container-login::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, #dc2626 30%, #ef4444 70%, transparent 100%);
    z-index: 10;
}

/* ================= 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: 18px;
    margin-bottom: 45px;
}

.left-panel .logo img {
    width: 85px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5), 0 0 60px rgba(220, 38, 38, 0.2);
    background: #1a0000;
    padding: 8px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.left-panel .logo h2 {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
    line-height: 1.2;
}

/* Línea roja bajo el nombre */
.left-panel .logo h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, transparent);
    margin-top: 6px;
    border-radius: 2px;
}

.left-panel .hero-text {
    max-width: 520px;
    animation: fadeUp 1s ease-out;
}

.left-panel .descrih1tion {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f87171 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
}

.left-panel .description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 35px;
}

.security-tips {
    margin-bottom: 35px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(5, 5, 5, 0.5) 100%);
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-left: 4px solid #dc2626;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.security-tips p {
    font-size: 0.9rem;
    color: #f1f5f9;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-tips i {
    color: #f87171;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.left-panel .get-started {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 0, 0, 0.6);
    border: 1px solid #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    color: white;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.left-panel .get-started:hover {
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.6);
    color: #fff;
    text-decoration: none;
}

/* ================= RIGHT PANEL ================= */
.container-login .right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(8, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(220, 38, 38, 0.15);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.container-login .login-form {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 2, 2, 0.7);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 40px rgba(220, 38, 38, 0.1), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    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: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}

/* Línea roja decorativa bajo el h1 */
.login-form .login-header h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #f87171);
    margin: 10px auto 0;
    border-radius: 2px;
}

.login-form .login-header .subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 14px 0 0 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: #4b1515;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.container-login .form-group:focus-within .form-control-icon {
    color: #f87171;
}

.right-panel [type="text"],
.right-panel [type="password"] {
    width: 100%;
    padding: 16px 15px 16px 52px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 14px;
    background-color: rgba(0, 0, 0, 0.4);
    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: #4b1515;
}

.right-panel [type="text"]:focus,
.right-panel [type="password"]:focus {
    border-color: #dc2626;
    background-color: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15), inset 0 0 10px rgba(220, 38, 38, 0.08);
    outline: none;
}

.right-panel .login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: 1px solid rgba(220, 38, 38, 0.6);
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(185, 28, 28, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
    margin-top: 10px;
    text-transform: uppercase;
}

.right-panel .login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.7);
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.right-panel .login-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.verifica-sunat {
    text-align: center;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(220, 38, 38, 0.15);
}

.verifica-sunat img {
    max-width: 140px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.verifica-sunat img:hover {
    opacity: 0.85;
}

/* 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 25px;
        align-items: center;
        text-align: center;
        flex: none;
    }

    .left-panel .logo {
        flex-direction: column;
        gap: 10px;
    }

    .left-panel .logo h2::after {
        margin: 6px auto 0;
    }

    .left-panel .descrih1tion {
        font-size: 2.5rem;
    }

    .container-login .right-panel {
        padding: 20px 0;
        background: rgba(5, 0, 0, 0.85);
        border-left: none;
        border-top: 1px solid rgba(220, 38, 38, 0.15);
        box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6);
        width: 100%;
    }

    .right-panel .login-form {
        padding: 30px 20px;
        box-shadow: none;
        background: transparent;
        border: none;
        backdrop-filter: none;
    }
}
