<? $cid = explode('.', $_SERVER['HTTP_HOST'])[0];?>

<!doctype html>
<html lang="en" style="height: 100%">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title><?php echo $module_name; ?></title>
<link rel="icon" type="image/x-icon" href="../../../../public/assets/images/login/robi_favicon-32x32.png">
  
    <link href="../../../../public/assets/css/bootstrap.v4.4.1.min.css" type="text/css" rel="stylesheet"/>

<link rel="stylesheet" type="text/css" href="../../../../public/assets/css/acc_mod_index.css" media="all">
<?
 $cloud_bg_logo = "../../../logo/bg_image/New_ERP.png";
 $project_bg_logo = "../../../logo/bg_image/".$cid.".png";
								
	if(is_file($project_bg_logo)) {
		$bg_image = $project_bg_logo;
	} else {
		$bg_image = $cloud_bg_logo;
	}
								
?>

    <style type="text/css">

        *{
            padding: 0;
            margin: 0;
            outline: none;
        }
        body{
            font-family: 'Roboto', sans-serif !important;
            height:100vh;
            color: #3a3e42 !important;
		
			background: linear-gradient(45deg,#e84e10,#801b61);
        }
        .AppFormLeft{
            width: 300px;
        }
        .AppForm .AppFormLeft h1{
            font-size: 35px;
        }
        .AppForm .AppFormLeft input:focus{
            border-color: #ced4da;
        }
        .AppForm .AppFormLeft input::placeholder{
            font-size: 15px;
        }
        .AppForm .AppFormLeft i{
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        }
        .AppForm .AppFormLeft a{
            color: #3a3e42 ;
        }
        .AppForm .AppFormLeft button{
            background: linear-gradient(45deg,#c70c43,#e41a4c);
            border-radius: 30px;
        }
        .AppForm .AppFormLeft p span{
            color: #007bff;
        }
        .AppForm .AppFormRight{
           
			background: linear-gradient(45deg,#cd3b00,#060506);
            height: 100%;
            
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            
        }
        .AppForm .AppFormRight:after{
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg,#8D334C,#CF6964);
            opacity: 0.5;
        }
        .AppForm .AppFormRight h2{
            z-index: 1;
        }
        .AppForm .AppFormRight h2::after{
            content: "";
            position: absolute;
            width: 100%;
            height: 2px;
            background-color: #fff;
            bottom: 0;
            left:50%;
            transform: translateX(-50%);
        }
        .AppForm .AppFormRight p{
            z-index: 1;
        }
		.sec-display{
			display:block;
		}
		
		.ds-row{
			background-color: #fff;
			border-radius: 10px 0px 0px 10px;
		}
		
		@media only screen and (max-width: 600px) {
			.sec-display{
				display: none;
			}
			.ds-row{
			    background-color: #fff;
				border-radius: 20px;
				margin: 1px;
			}
		}
    </style>

</head>

<body>


<div class="container h-100" style=" zoom: 85%; ">

    <div class="row h-100 justify-content-center align-items-center">
	<!-- <h1 style="color:#FFFFFF">Vendor Portal Login</h1> -->
        <form class="col-md-9" action="" method="post">
            <div class="AppForm shadow-lg">
            <? if($msg !=''){ ?>
 <div class="alert alert-danger"><?=$msg;?></div>
<? } ?>
                <div class="row ds-row">
                    <div class="col-md-6 d-flex justify-content-center align-items-center">
                        <div class="AppFormLeft">
<div><?=$_SESSION['mmsg'];unset($_SESSION['mmsg']);?></div>
							
                            <div style="text-align:center;  margin-bottom: 22px; margin-top: 12px;">
							   <?
									$cloud_logo = "../../../../public/assets/images/logo/clouderplogo.png";
									$project_logo = "../../../../public/assets/images/logo/".$cid.".png";
									if(is_file($project_logo)) {
									$show_logo = $project_logo;
									} else {
									$show_logo = $cloud_logo;
									}
								?>
							<img alt="this is img" src="<?=$show_logo?>" style=" width: 200px;">
							
							</div>

                            <div class="oe_login_error_message oe_enterprise_error_message"></div>
                            <div style="display: none;" class="oe_login_dbpane">
                                <fieldset><legend>Required Information:</legend>
                                    <legend>Database</legend>
                                    <select name="db">
                                        <option value="erpcombd">erpcombd</option>
                                    </select>
                                </fieldset>
                            </div>

                            <div style="display:none" class="form-group position-relative mb-4">
                                <input type="hidden" autofocus="autofocus" name="cid" value="<?=$cid?>" class="form-control border-top-0 border-right-0 border-left-0 rounded-0 shadow-none" id="Companyid" placeholder="Company ID" required>
                                <em class="fa fa-building-o"></em >
                            </div>

                            <div class="form-group position-relative mb-4">
                                <input type="text" autofocus="autofocus" name="uid"  value="" class="form-control border-top-0 border-right-0 border-left-0 rounded-0 shadow-none" id="username"
                                       placeholder="Username" required>
                                <em class="fa fa-user-o"></em >
                                <input autofocus="autofocus" name="ibssignin" value="" type="hidden">
                            </div>


                            <div style="opacity: 0; display: none;" class="oe_enterprise_signin">

                                <div style="display: block;" class="oe_enterprise_checker_message">An account with this email address already exists.</div>

                            </div>



                            <div class="form-group position-relative mb-4">
                                <input type="password"  name="pass" value="" class="form-control border-top-0 border-right-0 border-left-0 rounded-0 shadow-none" id="password"
                                       placeholder="Password" required autocomplete="off">
                                <em class="fa fa-key"></em >

                            </div>


                            <div class="row  mt-4 mb-4">
                                <div class="col-md-6">
                                    
                                </div>
                                <div class="col-md-6 text-right">

                                </div>
                            </div>

                            <button  name="submit"  class="btn btn-success btn-block shadow border-0 py-2 text-uppercase ">
                                Login
                            </button>
							
						
                            <p class="text-center mt-5">
                              
                                   <a href="forgot_pass.php">
								   <span>
                                      Forgot Password
                                  </span>
								  </a>

                            </p>

                        </div>

                    </div>
                    <div class="col-md-6 p-0 sec-display" >
                        <div class="AppFormRight position-relative d-flex justify-content-center flex-column align-items-center text-center p-5 text-white">
                            <img src="../../../../public/assets/images/login/erp01.png" class="w-100" height="100%" alt="The is Image">
                        </div>
                    </div>
                </div>
            </div>

        </form>
    </div>
</div>



</body>

</html>

