<?php 
//    $con         =  mysqli_connect('localhost', 'indiarobotics_warrant', '098namita#','indiarobotics_demo') or die('Unable to connect to db');
//    $dist        =  " SELECT * FROM `dist` " ;
//    $distq       =  mysqli_query($con,$dist);
//    $dist_result =  mysqli_fetch_assoc($distq);
?>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Great+Vibes&family=Patua+One&display=swap" rel="stylesheet">
<!------ Include the above in your HEAD tag ---------->
<style>
      body{background-image: url('assets/images/webr.jpg'); background-size: cover;background-repeat: no-repeat;min-height: 100vh; background-position: center;}
      .bt-centr{position: absolute; left: 50%; top: 50%;  transform: translate(-50%, -50%);}
      .blink{position: absolute; left: 70% ;top:24%;}
  
  </style>
  <style>
         
@import  url('https://fonts.googleapis.com/css?family=Mukta');
body{
  font-family: 'Mukta', sans-serif;
	height:100vh;
	min-height:550px;
}

 body{
    background-image: linear-gradient(45deg, #343a40, #2125292e), url('<?php echo e(url('public/dist/img/background.jpeg')); ?>'); 
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
	background-position:center;
	position:relative;
    overflow-y: hidden;
}
a{
  text-decoration:none;
  color:#444444;
}
.btn {
    padding: .8rem .75rem;
    font-size: 18px;
}
.login-reg-panel{
   /* position: relative;*/
    /* top: 50%; */
    /* transform: translateY(-50%); */
    text-align: center;
    /* width: 90%; */
    right: 0;
    left: 0;
    margin: auto;
    /* height: 400px;*/
 
}
.white-panel{
   background-color: rgba(255,255, 255, .4);
    height: 100vh;
    position: absolute;
    top: 0;
    width: 30%;
    left: 0;
    transition: .3s ease-in-out;
    z-index: 0;
    box-shadow: 0 0 15px 9px #00000096
}
.login-reg-panel input[type="radio"]{
    position:relative;
    display:none;
}
.login-reg-panel{
    color:#B8B8B8;
}
.login-reg-panel #label-login, 
.login-reg-panel #label-register{
    border:1px solid #9E9E9E;
    padding:5px 5px;
    width:150px;
    display:block;
    text-align:center;
    border-radius:10px;
    cursor:pointer;
    font-weight: 600;
    font-size: 18px;
}
.login-info-box{
    width:30%;
    padding:0 50px;
    top:-11%;
    left:0;
    position:absolute;
    text-align:left;
}
.register-info-box{
    display: flex;
    align-items: center;
    width:50%;
    padding:050px;
    top:0;
    right:0;
    position:absolute;
    text-align:left;
    min-height: 100vh;
    
}
.right-log{right:50px !important;}

.login-show, 
.register-show{
    z-index: 1;
    display:none;
    opacity:0;
    transition:0.3s ease-in-out;
    color:#242424;
    text-align:left;
    padding:50px;
}
.show-log-panel{
    min-height: 100vh;
    width: 100%;
    display:flex;
    align-items: center;
    opacity: 1;
}
.show-log-panel .panel-inner {
    width: 100%;
}
.login-show input[type="text"], .login-show input[type="password"]{
    width: 100%;
    display: block;
    margin:20px 0;
    padding: 15px;
    border: 1px solid #b5b5b5;
    outline: none;
}
.login-show input[type="button"] {
    max-width: 150px;
    width: 100%;
    background: #444444;
    color: #f9f9f9;
    border: none;
    padding: 10px;
    text-transform: uppercase;
    border-radius: 2px;
    float:right;
    cursor:pointer;
}
.login-show a{
    display:inline-block;
    padding:10px 0;
}

.register-show input[type="text"], .register-show input[type="password"]{
    width: 100%;
    display: block;
    margin:20px 0;
    padding: 15px;
    border: 1px solid #b5b5b5;
    outline: none;
}
.register-show input[type="button"] {
    max-width: 150px;
    width: 100%;
    background: #444444;
    color: #f9f9f9;
    border: none;
    padding: 10px;
    text-transform: uppercase;
    border-radius: 2px;
    float:right;
    cursor:pointer;
}
.credit {
    position:absolute;
    bottom:10px;
    left:10px;
    color: #3B3B25;
    margin: 0;
    padding: 0;
    font-family: Arial,sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 99;
}
a{
  text-decoration:none;
  color:#2c7715;
}

.font1{
    font-family: 'Great Vibes', cursive;
}
.font2{
   font-family: 'Patua One', cursive;
}

   @media  only screen and (max-width: 768px){
        .white-panel{
            height: 66vh !important;
            width: 100%;
        }
        .white-panel img{
            width: 40px !important;
        }
        h3, h2{
            font-size: 14px !important;
        }
        .register-info-box{
            width: 100%;
            top: 68%;
        }
     }
  </style>
  <script>
      
    $(document).ready(function(){
    $('.login-info-box').fadeOut();
    $('.login-show').addClass('show-log-panel');
});


$('.login-reg-panel input[type="radio"]').on('change', function() {
    if($('#log-login-show').is(':checked')) {
        $('.register-info-box').fadeOut(); 
        $('.login-info-box').fadeIn();
        
        $('.white-panel').addClass('right-log');
        $('.register-show').addClass('show-log-panel');
        $('.login-show').removeClass('show-log-panel');
        
    }
    else if($('#log-reg-show').is(':checked')) {
        $('.register-info-box').fadeIn();
        $('.login-info-box').fadeOut();
        
        $('.white-panel').removeClass('right-log');
        
        $('.login-show').addClass('show-log-panel');
        $('.register-show').removeClass('show-log-panel');
    }
});
    
    </script>
    
    <div class="login-reg-panel">
    <div class="register-info-box">
        <div>
            <h4 style="color: white; margin-bottom: 20px;">POST Mortem Investigation and reporting system(MIRS)</h4>
            <h2 style="color:white; font-size: 36px;" class="font1">Conceptualized by: </h2>
            <p><h3 style="color:white" class="font2">Shri Alok Rajoria, IPS </h3></p>
            <p><h5 style="color:yellow" ><b style="color: yellow;font-size: 16px;font-weight: normal;">Developed by : India Unmanned Arial Robotics Pvt Ltd</b></h5></p>	
        </div>
	</div>
			<form method="post" action="<?php echo e(url('Hospital_Login')); ?>" >					
		     <?php echo csrf_field(); ?>
		    <div class="white-panel">
			
			<div class="login-show">
	
    	       <div class="panel-inner">
    	           <img src="<?php echo e(url('public/dist/img/barracpore_logo.png')); ?>" style="width:100px;margin: auto; display: block; ">
		
    				<h3 style="text-align: center;font-weight:bold; margin-top: 10px;">
    		
    				<? //$dist_result['name'];?> MIRS
    		
    				</h3>
    		
    				<p style="margin-top: 20px; font-size: 24px; color: white;">Login to Hosital Panel</p>
    			    <input type="text" name="email"  placeholder="User Email">
    				<input type="password" name="password" placeholder="Password">
    	            <input type="submit" class="btn btn-primary btn-block" value="Login">
    	       </div>
		
			</div>
		
		</div>
		</div>
		</form>
	</html>
		
		<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> 
<?php 
	if(isset($_SESSION['message'])){
	$explode = explode(',',$_SESSION['message']);
?>
<script>

swal('<?=$explode[0]?>','<?=$explode[1]?>','<?=$explode[2]?>');

</script>

<?php
		unset($_SESSION['message']);
 } ?>
 <?php /**PATH /home/hpinfome/public_html/mirs/resources/views/layouts/hos_login.blade.php ENDPATH**/ ?>