<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Masuk</title>

<style>

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes float{
    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0px);
    }
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

body{
height:100vh;
display:flex;
justify-content:center;
align-items:center;
background:
linear-gradient(
rgba(232,245,233,.82),
rgba(200,230,201,.82)
),
url('/images/sarulla-banner.jpg');

background-size:cover;
background-position:center;
background-attachment:fixed;
overflow:hidden;
}

.container{
width:980px;
height:560px;
display:flex;
border-radius:22px;
overflow:hidden;
box-shadow:0 20px 60px rgba(0,0,0,.45);
background:rgba(255,255,255,.65);
backdrop-filter:blur(12px);
animation:fadeUp .8s ease;
}

.left{
flex:1;
padding:70px 55px;
background:rgba(255,255,255,.04);
color:#14532d;
display:flex;
flex-direction:column;
justify-content:center;
animation:float 5s ease-in-out infinite;
}

.logo{
font-size:34px;
font-weight:bold;
margin-bottom:15px;
color:#15803d;
}

.left h1{
font-size:42px;
margin-bottom:18px;
line-height:1.2;
}

.left p{
font-size:17px;
color:#355e3b;
line-height:1.8;
max-width:380px;
}

.right{
flex:1;
background:rgba(255,255,255,.45);
display:flex;
justify-content:center;
align-items:center;
padding:40px;
}

.card{
width:100%;
max-width:380px;
padding:40px;
border-radius:20px;
background:rgba(255,255,255,.08);
backdrop-filter:blur(20px);
box-shadow:0 15px 40px rgba(0,0,0,.25);
transition:.3s;
}

.card:hover{
    transform:translateY(-4px);
}

.card h2{
color:#166534;
font-size:30px;
margin-bottom:25px;
}

.input{
width:100%;
padding:14px;
margin-bottom:15px;
border:1px solid #d1d5db;
outline:none;
border-radius:12px;
background:#ffffff;
color:#111827;
font-size:15px;
transition:.2s;
}

.input::placeholder{
color:#94a3b8;
}

.input:focus{
border-color:#15803d;
box-shadow:0 0 0 3px rgba(34,197,94,.15);
}

button{
width:100%;
padding:14px;
border:none;
border-radius:12px;
background:#15803d;
color:white;
font-size:16px;
font-weight:bold;
cursor:pointer;
transition:.2s;
}

button:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(22,163,74,.35);
}

.bottom{
margin-top:18px;
text-align:center;
color:#64748b;
font-size:14px;
}

.bottom a{
color:#15803d;
text-decoration:none;
font-weight:bold;
}

@media(max-width:900px){

.container{
    width:95%;
    height:auto;
    flex-direction:column;
}

.left{
    padding:40px 30px;
    text-align:center;
    align-items:center;
}

.left h1{
    font-size:32px;
}

.left p{
    max-width:none;
}

.right{
    padding:25px;
}

.card{
    max-width:100%;
}

}

</style>
</head>
<body>

<div class="container">

<div class="left">

<h1>Selamat datang</h1>

<p>
Penggunaan Kendaraan Perusahaan yang realtime dan pintar dimulai di sini
</p>

</div>

<div class="right">

<div class="card">

<h2>Masuk ke Website</h2>

<form method="POST" action="/login">
@csrf

<input class="input" type="email" name="email" placeholder="Email" required>

<input class="input" type="password" name="password" placeholder="Password" required>

<button type="submit">Masuk</button>

</form>

<div class="bottom">
Belum punya akun?
<a href="/register">Daftar</a>
</div>

</div>

</div>

</div>

</body>
</html>