/* =========================================================
   EXACT UI STYLE - FIXED FULLSCREEN
   TODO CABE PERFECTAMENTE
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

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

/* =========================================================
   BODY
========================================================= */

body{

    width:100%;
    height:100vh;

    overflow:hidden;

    background:
    radial-gradient(circle at top left,
    rgba(0,255,140,.10),
    transparent 30%),

    radial-gradient(circle at bottom right,
    rgba(0,255,140,.06),
    transparent 30%),

    #03100c;

    font-family:'Poppins',sans-serif;

    color:white;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.main-container{

    width:100%;

    height:100vh;

    display:grid;

    grid-template-columns: 1.35fr .78fr;

    gap:14px;

    padding:12px;

    overflow:hidden;
}

/* =========================================================
   PANELS
========================================================= */

.camera-panel,
.login-panel{

    position:relative;

    overflow:hidden;

    border-radius:34px;

    background:
    linear-gradient(
        145deg,
        rgba(2,12,9,.98),
        rgba(4,20,15,.98)
    );

    border:
    1px solid rgba(0,255,140,.20);

    box-shadow:
    0 0 25px rgba(0,255,140,.10),
    0 10px 50px rgba(0,0,0,.45);

    height:calc(100vh - 24px);
}

/* =========================================================
   GREEN GLOW
========================================================= */

.camera-panel::before,
.login-panel::before{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    background:
    radial-gradient(
        circle,
        rgba(0,255,140,.10),
        transparent 70%
    );

    border-radius:50%;

    filter:blur(40px);

    pointer-events:none;
}

.camera-panel::before{

    top:-250px;
    left:-250px;
}

.login-panel::before{

    bottom:-250px;
    right:-250px;
}

/* =========================================================
   CAMERA PANEL NUEVO
========================================================= */

.camera-panel{

    padding:18px;

    display:grid;

    grid-template-rows:
    80px
    1fr
    55px;

    gap:14px;

    height:100%;
}

/* =========================================================
   CLOCK
========================================================= */

.clock-container{

    width:100%;
}

.clock{

    width:100%;

    height:72px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:
    linear-gradient(
        145deg,
        rgba(0,0,0,.88),
        rgba(4,15,10,.95)
    );

    border-radius:30px;

    border:
    2px solid rgba(255,255,255,.10);

    font-family:'Orbitron',sans-serif;

    font-size:clamp(40px,3vw,65px);

    font-weight:800;

    letter-spacing:-4px;

    color:white;

    overflow:hidden;

    position:relative;

    text-shadow:
    0 0 8px rgba(255,255,255,.15),
    0 0 18px rgba(255,255,255,.08);

    box-shadow:
    inset 0 0 30px rgba(255,255,255,.03),
    0 0 25px rgba(0,255,140,.08);
}

.clock::before{

    content:"";

    position:absolute;

    top:-40px;
    left:-100px;

    width:300px;
    height:160px;

    background:
    linear-gradient(
        145deg,
        rgba(255,255,255,.18),
        transparent
    );

    transform:rotate(-12deg);
}

.date{

    margin-top:5px;

    text-align:center;

    color:#b8ffe1;

    font-size:12px;

    letter-spacing:1px;

    text-transform:uppercase;
}

/* =========================================================
   CAMERA GRANDE
========================================================= */

.camera-box{

    position:relative;

    width:100%;

    height:100%;

    min-height:0;

    background:black;

    border-radius:40px;

    overflow:hidden;

    border:
    2px solid rgba(255,255,255,.08);

    box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.02),
    0 20px 50px rgba(0,0,0,.60);
}

/* brillo */

.camera-box::before{

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        145deg,
        rgba(255,255,255,.06),
        transparent 35%
    );

    z-index:5;

    pointer-events:none;
}

/* video */

#video{

    width:100%;

    height:100%;

    object-fit:cover;

    filter:
    brightness(.90)
    contrast(1.08)
    saturate(1.05);
}

/* scanner */

.camera-box::after{

    content:"";

    position:absolute;

    top:24px;
    left:24px;
    right:24px;
    bottom:24px;

    border:
    2px solid rgba(0,255,140,.18);

    border-radius:30px;

    pointer-events:none;

    z-index:5;
}

/* =========================================================
   TEXTOS
========================================================= */

.camera-title{

    text-align:center;

    font-size:24px;

    font-weight:700;

    margin-top:4px;
}

.camera-subtitle{

    text-align:center;

    color:#b8ffe1;

    font-size:12px;

    line-height:1.5;

    margin-top:4px;
}


/* =========================================================
   RIGHT PANEL
========================================================= */

.login-panel{

    padding:28px;

    display:flex;

    align-items:center;

    justify-content:center;
}

/* =========================================================
   CARD
========================================================= */

.card-box{

    width:100%;

    max-width:390px;

    position:relative;

    z-index:2;
}

/* =========================================================
   LOGO
========================================================= */

.logo{

    display:flex;

    justify-content:center;

    margin-bottom:22px;
}

.logo img{

    width:95px;

    height:95px;

    border-radius:50%;

    object-fit:cover;

    border:
    2px solid rgba(255,255,255,.12);

    box-shadow:
    0 0 25px rgba(0,255,140,.20);
}

/* =========================================================
   TITLES
========================================================= */

.title{

    text-align:center;

    font-size:34px;

    font-weight:700;

    margin-bottom:8px;
}

.subtitle{

    text-align:center;

    color:#b8ffe1;

    font-size:14px;

    margin-bottom:30px;
}

/* =========================================================
   INPUT GROUP
========================================================= */

.input-group{

    display:flex;

    gap:10px;
}

/* =========================================================
   INPUT
========================================================= */

.form-control{

    flex:1;

    height:62px !important;

    border:none !important;

    border-radius:22px !important;

    background:
    linear-gradient(
        145deg,
        rgba(0,0,0,.80),
        rgba(8,20,15,.90)
    ) !important;

    border:
    1px solid rgba(0,255,140,.18) !important;

    color:white !important;

    font-size:16px !important;

    padding:0 22px !important;

    box-shadow:none !important;

    font-family:'Poppins',sans-serif !important;
}

.form-control::placeholder{

    color:#b8ffe1;
}

.form-control:focus{

    box-shadow:
    0 0 0 2px rgba(0,255,140,.15) !important;
}

/* =========================================================
   BUTTON
========================================================= */

.btn-primary{

    width:70px;

    height:62px;

    border:none !important;

    border-radius:22px !important;

    background:
    linear-gradient(
        145deg,
        #00d47a,
        #0a6d4b
    ) !important;

    box-shadow:
    0 10px 30px rgba(0,255,140,.25);

    transition:.3s;
}

.btn-primary:hover{

    transform:translateY(-2px);

    box-shadow:
    0 14px 35px rgba(0,255,140,.35);
}

/* =========================================================
   HELP
========================================================= */

.help-block{

    margin-top:18px;

    text-align:center;

    color:#b8ffe1;

    font-size:13px;
}

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

.footer-link{

    margin-top:26px;

    text-align:center;
}

.footer-link a{

    color:#98ffd8;

    text-decoration:none;

    transition:.3s;
}

.footer-link a:hover{

    color:white;
}

/* =========================================================
   TABLET
========================================================= */

@media(max-width:1100px){

    body{

        overflow:auto;
    }

    .main-container{

        grid-template-columns:1fr;

        height:auto;

        min-height:100vh;
    }

    .camera-panel,
    .login-panel{

        height:auto;
    }

    .camera-box{

        height:380px;

        flex:none;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:768px){

    body{

        overflow:auto;
    }

    .main-container{

        padding:10px;
    }

    .camera-panel,
    .login-panel{

        border-radius:26px;

        padding:18px;
    }

    .clock{

        height:115px;

        font-size:58px;

        letter-spacing:-4px;

        border-radius:24px;
    }

    .date{

        font-size:13px;
    }

    .camera-box{

        height:240px;

        border-radius:22px;
    }

    .title{

        font-size:28px;
    }

    .input-group{

        flex-direction:column;
    }

    .btn-primary{

        width:100%;
    }
}