:root{
  --card-w: 420px;
  --radius: 18px;
}

/* Reset */
*{ box-sizing: border-box; }
html, body{
  height:100%;
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Background */
body{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:24px;

  background-image: url('/public/images/backgrounds/login_desktop.png.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Overlay */
body::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* Mobile background */
@media (max-width: 768px){
  body{
    background-image: url('/public/images/backgrounds/login_mobile.png.jpg');
    padding:18px;
  }
}

.wrap{
  width: min(var(--card-w), 100%);
  position: relative;
  z-index: 1;
}

.card{
  border-radius: var(--radius);
  padding: 22px 20px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

h1{
  margin: 0 0 14px 0;
  font-size: 22px;
  color: #fff;
}

.hint{
  margin: 0 0 18px 0;
  color: rgba(255,255,255,.85);
  font-size: 14px;
}

.error{
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 90, 90, .18);
  border: 1px solid rgba(255, 90, 90, .35);
  color: #fff;
  font-size: 14px;
}

label{
  display:block;
  margin-bottom: 12px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
}

input{
  width:100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.18);
  color: #fff;
  outline: none;
}

input:focus{
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 0 3px rgba(255,255,255,.14);
}

button{
  width:100%;
  padding: 12px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  background: rgba(255,255,255,.92);
  color: #111;
}

.footer{
  margin-top: 12px;
  text-align:center;
  color: rgba(255,255,255,.75);
  font-size: 12px;
}

.footer a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover{
  text-decoration: underline;
}

.success{
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 255, 140, .14);
  border: 1px solid rgba(0, 255, 140, .28);
  color: #fff;
  font-size: 14px;
}
