﻿/* =========================================================
   LOGIN FINAL
   Carrusel 65% / Login 35%
   Login centrado
   Corte doble visible + flechas profesionales
========================================================= */

html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #ffffff;
    background-image: url('../../img/fond555.jpg');
   
}

/* =========================
   LAYOUT
========================= */
.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* =========================================================
   IZQUIERDA: CARRUSEL (65%)
========================================================= */
.login-carousel {
    width: 65%;
    position: relative;
    overflow: hidden;
    background: #000;
    /* CORTE DOBLE ZIG-ZAG REAL */
    clip-path: polygon( 0 0, 100% 0, 90% 35%, 100% 55%, 90% 100%, 0 100% );
    /* BORDE DOBLE VISIBLE */
    filter: drop-shadow(10px 0 0 rgba(0,0,0,0.30)) drop-shadow(18px 0 0 rgba(255,255,255,0.25));
    
}

    /* Trazo doble pegado al corte */
    /*.login-carousel::before {
        content: "";
        position: absolute;
        inset: 10px;*/ /* grosor externo */
        /*background: rgb(0, 0, 0, 0.13);  color del borde externo 
        clip-path: polygon(0 0, 100% 0, 90% 35%, 100% 55%, 90% 100%, 0 100%);
        z-index: 1;
        pointer-events: none;
    }*/

/* =========================================================
   CARRUSEL
========================================================= */
.carousel {
    position: absolute;
    inset: 0;
}

.slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.1s ease, transform 6s ease;
}

    .slide.is-active {
        opacity: 1;
        transform: scale(1.08);
    }

/* Texto */
.carousel-overlay {
    position: absolute;
    left: 40px;
    bottom: 44px;
    z-index: 6;
    color: #fff;
    background: rgba(0,0,0,0.45);
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
}

    .carousel-overlay h2 {
        margin: 0;
        font-weight: 800;
    }

    .carousel-overlay p {
        margin: 6px 0 0 0;
        opacity: .9;
    }

/* =========================================================
   FLECHAS PROFESIONALES
========================================================= */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(7px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.30);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

    .carousel-btn .chev {
        font-size: 34px;
        color: #fff;
        user-select: none;
    }

    .carousel-btn:hover {
        background: rgba(0,0,0,0.55);
        box-shadow: 0 22px 55px rgba(0,0,0,0.40);
        transform: translateY(-50%) scale(1.05);
    }

    .carousel-btn.prev {
        left: 22px;
    }

    .carousel-btn.next {
        right: 62px;
    }

/* =========================================================
   DOTS
========================================================= */
.carousel-dots {
    position: absolute;
    left: 40px;
    bottom: 18px;
    z-index: 7;
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.16);
    cursor: pointer;
}

    .dot.is-active {
        background: rgba(255,255,255,0.95);
        border-color: rgba(255,255,255,0.95);
        transform: scale(1.18);
    }

/* =========================================================
   DERECHA: LOGIN (35%) CENTRADO
========================================================= */
.login-panel {
    width: 35%;
    background-image: url('../../img/fondturq.jpg');
    /*   background: #ffffff;*/
    display: flex;
    align-items: center; /* CENTRADO VERTICAL */
    justify-content: center; /* CENTRADO HORIZONTAL */
    padding: 20px;
    position: relative; /* ✅ IMPORTANTE */
  
}

/* (Tu login-card queda, pero no es necesario si usas login-box.
   Lo dejo sin tocar para no romper otras partes.) */
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 34px;
    border-radius: 18px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 28px 70px rgba(15,23,42,0.12), 0 10px 25px rgba(15,23,42,0.08);
}

.logo-seguridad {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

/* Logo */
.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.login-logo {
    width: 220px;
    max-width: 100%;
}

.login-seg {
    width: 120px;
    max-width: 100%;
}

/* Título */
.login-title {
    text-align: center;
    margin: 6px 0 18px 0;
    color: #111827;
    font-weight: 900;
}

/* Inputs */
.form-group label {
    color: #374151;
    font-weight: 700;
}

.form-control {
    height: 46px;
    border-radius: 14px !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    background: #fff !important;
    color: #111827 !important;
}

    .form-control::placeholder {
        color: #9ca3af;
    }

    .form-control:focus {
        border-color: rgba(26,179,148,0.65) !important;
        box-shadow: 0 0 0 .25rem rgba(26,179,148,0.18) !important;
    }

/* Botón */
.btn-login {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #1ab394, #4fd1b5);
    color: #fff;
    font-weight: 900;
    margin-top: 14px;
    box-shadow: 0 10px 20px #03030366;
}

    .btn-login:hover {
        box-shadow: 0 24px 50px rgba(26,179,148,0.35);
    }

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 16px;
}

    .login-footer a {
        color: #1ab394;
        font-weight: 900;
        text-decoration: none;
    }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px) {
    .login-carousel {
        display: none;
        clip-path: none;
        filter: none;
    }

    .login-panel {
        width: 100%;
    }

    .login-card {
        max-width: 420px;
    }
}

/* =========================================================
   OJITO
========================================================= */
.password-wrap {
    position: relative;
}

    .password-wrap .form-control {
        padding-right: 42px; /* espacio para el ojito */
    }

.pass-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px; /* tamaño correcto */
    line-height: 1;
    opacity: 0.6;
}

    .pass-toggle:hover {
        opacity: 1;
    }

/* =========================================================
   TU LOGIN-BOX (✅ CORREGIDA PARA QUE NO SE VAYA AL CENTRO DE LA PANTALLA)
========================================================= */
.login-box {
    width: 360px;
   
    background: #ffffffff;
    color: #000; /* para que el texto se vea en blanco transparente */
    
    box-sizing: border-box;
    padding: 20px 30px;
    box-shadow: 0 0 30px #121211;
    border-radius: 20px;
    /* ✅ CLAVE: ya NO es absoluta */
    position: relative;
    margin: 0 auto; /* por si acaso */
}

/* Avatar centrado respecto a la caja */
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px #000000;
}
