{% extends 'layout/base.html.twig' %}
{% block meta %}
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="#0095ab" name="theme-color" />
<meta name="description" content="Morava servis login" />
{% endblock %}
{% block stylesheets %}
<link href="assets/logo.svg" rel="icon" type="image/svg" />
<link rel="apple-touch-icon" href="assets/logo.svg" />
<link
rel="preload"
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
as="style"
onload="this.onload=null;this.rel='stylesheet'"
/>
<noscript>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
/>
</noscript>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
/>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap"
rel="preload"
as="font"
type="text/css"
crossorigin="anonymous"
/>
<style>
body {
font-family: 'Montserrat', sans-serif !important;
}
a {
color: #000c40 !important;
}
.p-col-12 {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding: 0.5rem;
}
.p-col-12 {
width: 100%;
}
.p-md-12,
.p-lg-6,
.p-lg-8,
.p-lg-9,
.p-xl-6 {
padding: 0.5rem;
}
@media screen and (min-width: 768px) {
.p-md-12 {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
}
.p-md-12 {
width: 100%;
}
}
@media screen and (min-width: 992px) {
.p-lg-6,
.p-lg-8,
.p-lg-9 {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
}
.p-lg-6 {
width: 50%;
}
.p-lg-8 {
width: 66.6667%;
}
.p-lg-9 {
width: 75%;
}
}
@media screen and (min-width: 1200px) {
.p-xl-6 {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
}
.p-xl-6 {
width: 50%;
}
}
.p-mt-3 {
margin-top: 1rem !important;
}
.p-mt-5 {
margin-top: 2rem !important;
}
.p-py-5 {
padding-top: 2rem !important;
padding-bottom: 2rem !important;
}
.p-shadow-4 {
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2),
0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}
button {
border-radius: 0;
}
.p-button {
margin: 0;
display: inline-flex;
align-items: center;
vertical-align: bottom;
text-align: center;
overflow: hidden;
position: relative;
}
.p-inputtext {
margin: 0;
}
.p-fluid .p-inputtext {
width: 100%;
}
button {
background: #000c40 !important;
}
button:hover {
opacity: 0.7;
cursor: pointer;
}
.container {
width: 100%;
height: 100vh;
display: flex;
flex-wrap: wrap;
}
.formWrapper {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
background-color: #fff;
border-radius: 5px;
}
.formWrapper > div {
width: 70% !important;
}
.formWrapper button > img {
width: 20% !important;
}
.formWrapper > button {
display: flex;
justify-content: space-between;
}
.container > div:first-child {
background: #0095ab;
}
.display-flex {
display: flex;
justify-content: center;
align-items: center;
}
input:not(:focus) {
background-color: #e9e5e5 !important;
}
@media only screen and (max-width: 1200px) {
.imageDiv {
display: none !important;
}
.container > div:first-child {
background: #fff;
}
.p-shadow-4 {
box-shadow: none !important;
}
.loginWrapper {
max-height: 100vh;
}
.formWrapper {
height: 100vh;
}
.formWrapper > div {
width: 100% !important;
line-height: 4;
}
}
@media only screen and (min-width: 601px) and (max-width: 1200px) and (orientation: portrait) {
.p-inputtext {
font-size: 1.5rem !important;
}
.formWrapper > div {
width: 100% !important;
line-height: 7 !important;
}
button {
transform: scale(1.6);
}
}
:root {
--surface-a: #ffffff;
--surface-b: #f8f9fa;
--surface-c: #e9ecef;
--surface-d: #dee2e6;
--surface-e: #ffffff;
--surface-f: #ffffff;
--text-color: #495057;
--text-color-secondary: #6c757d;
--primary-color: #2196f3;
--primary-color-text: #ffffff;
--font-family: 'Montserrat', sans-serif !important;
}
* {
box-sizing: border-box;
}
.p-inputtext {
font-family: 'Montserrat', sans-serif !important;
font-size: 1rem;
color: #495057;
background: #ffffff;
padding: 0.5rem 0.5rem;
border: 1px solid #ced4da;
appearance: none;
border-radius: 3px;
}
.p-inputtext:enabled:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 0.2rem #a6d5fa;
border-color: #2196f3;
}
.p-button {
color: #ffffff;
background: #2196f3;
border: 1px solid #2196f3;
padding: 0.5rem 1rem;
font-size: 1rem;
border-radius: 3px;
}
form {
display: flex;
flex-direction: column;
align-items: center;
}
.p-text-center {
text-align: center !important;
}
.p-forget-password {
align-self: flex-start !important;
text-decoration: none !important;
font-size: .8rem;
}
</style>
{% endblock %}
{% block title %}Login - {{ parent() }}{% endblock %}
{% block body %}
<section class="container">
<div class="loginWrapper display-flex p-col-12 p-md-12 p-xl-6">
<div class="formWrapper p-col-12 p-lg-8 p-shadow-4 p-py-5">
<img src="assets/logo.svg" width="70%" alt="Morava Servis Logo" />
<div class="p-fluid p-mt-3 p-text-center">
{{ form_start(form) }}
{{ form_widget(form.username, {'attr': {'placeholder': 'Enter your email address'|trans, 'autocomplete': 'email', 'class': 'p-col-12 p-lg-9 p-inputtext','autofocus': 'autofocus'} }) }}
{{ form_widget(form.password, {'attr': {'placeholder': 'Enter your password'| trans, 'autocomplete': 'password', 'class': 'p-col-12 p-lg-9 p-mt-3 p-inputtext'} }) }}
<a href="/lost-password" class="p-forget-password p-mt-3">{% trans %} Forgot your password? {% endtrans %}</a>
<button type="submit" class="p-button p-mt-5">
{% trans %} Sign in {% endtrans %}
<img src="assets/login-icon.svg" alt="Login icon" width="50%" />
</button>
{{ form_end(form) }}
<p>{% trans %} Don't have an account? Register {% endtrans %} <a href="/registration">{% trans %} here! {% endtrans %}</a></p>
</div>
</div>
</div>
<div class="imageDiv display-flex p-col-12 p-lg-6">
<img
src="assets/authentication_isometric.svg"
alt="Login cover picture"
width="100%"
/>
</div>
</section>
{% endblock %}