SurveyVista/Web/Views/Account/Login.cshtml
2024-05-04 20:19:22 +02:00

196 lines
No EOL
5.5 KiB
Text

@model Web.ViewModel.AccountVM.LoginViewModel
@{
ViewData["Title"] = "Login";
Layout = "~/Views/Shared/_LoginLayout.cshtml";
}
<style>
body {
height: 100% !important;
background-repeat: no-repeat;
background: linear-gradient(119deg, rgba(47,82,131,1) 0%, rgba(29,33,59,1) 34%, rgba(27,54,61,1) 67%, rgba(58,82,116,1) 100%) !important
}
#rowSectionError {
display: flex;
flex-wrap: nowrap;
justify-content: space-around;
align-items: center;
align-content: center;
width: 100%;
flex-direction: row;
}
#Errocard {
box-shadow: 0px 0px 36px -12px rgba(20, 101, 230, 1);
-webkit-box-shadow: 0px 0px 20px 2px rgba(20, 101, 230, 1);
border-radius: 10px;
background-color: transparent;
height: 400px;
flex-wrap: nowrap;
align-items: center;
padding: 87px 50px 0 50px;
margin: 150px 0px 0px 0px;
color: white;
justify-content: flex-start;
}
#boxError{
display: inline;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-around;
align-items: center;
}
@@media (max-width: 792px) {
#Errocard {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
align-content: center;
height: 70vh;
padding: 70 20px 0 20px;
}
#boxError {
width: auto;
height: 30%;
margin: 5px;
}
}
@@media (max-width: 800px) {
#Errocard {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
align-content: center;
height: 70vh;
padding: 0 20px 0 20px;
}
#boxError {
width: auto;
height: 30%;
margin: 5px;
}
}
@@media (max-width: 1300px) {
#Errocard {
box-shadow: 0px 0px 36px -12px rgba(20,101,230,1);
-webkit-box-shadow: 0px 0px 20px 2px rgba(20,101,230,1);
border-radius: 10px;
background-color: transparent;
height: 400px;
flex-wrap: nowrap;
align-items: center;
padding: 89px 0px 0 0px;
margin: 50px 0px 0px 0px;
color: white;
}
#boxError {
width: auto;
margin: 5px;
}
#boxBanner {
display: block;
width: auto;
margin: 5px;
}
}
.form-control {
display: block;
width: 100%;
height: calc(1.5em + 0.75rem + 2px);
padding: 0.375rem 0.75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #495057;
background-color: #73494900 !important;
background-clip: padding-box;
border: 1px solid #115caf;
border-radius: 0.25rem;
-webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
-o-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}
</style>
<div class="d-flex flex-column" id="BannerBackground">
<!-- FOR DEMO PURPOSE -->
<section class="text-white">
<div class="container py-1">
<partial name="_Notification" />
<div class="" id="Errocard">
<div class="col-lg-6 col-md-6 offset-md-3 offset-lg-3 col-sm-12">
<form asp-action="Login">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-floating mb-3">
<input asp-for="Email" type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
<label for="floatingInput">Email address</label>
<span asp-validation-for="Email" class="text-danger"></span>
</div>
<div class="form-floating">
<input type="password" asp-for="Password" class="form-control" id="floatingPassword" placeholder="Password">
<label for="floatingPassword">Password</label>
<span asp-validation-for="Password" class="text-danger"></span>
</div>
<div class="form-group form-check mt-2">
<label class="form-check-label">
<input class="form-check-input" asp-for="RememberMe" /> @Html.DisplayNameFor(model => model.RememberMe)
</label>
</div>
<div class="form-group">
<input type="submit" value="Login" class="btn btn-outline-info btn-sm" />
</div>
</form>
</div>
</div>
</div>
</section>
</div>
@section Scripts {
@{
<partial name="_ValidationScriptsPartial" />
}
}