:root{
  --bg1:#5f67ff;
  --bg2:#12a2ff;

  --card: rgba(255,255,255,.14);
  --card-border: rgba(255,255,255,.28);

  --text:#ffffff;
  --muted: rgba(255,255,255,.82);

  --field-bg: rgba(255,255,255,.86);
  --field-border: rgba(255,255,255,.55);
  --field-text:#2b3445;

  --btn-bg: rgba(255,255,255,.85);
  --btn-text:#1b2333;

  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system,
               Segoe UI, Roboto, Arial, sans-serif;

  /* BACKGROUND IMAGE */
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../images/port_image.jpg") center / cover no-repeat fixed;

  display:grid;
  place-items:center;
  padding:24px;
}


.card{
  position:relative;
  width:min(560px, 92vw);
  padding:54px 44px 34px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 26px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo-wrap{
  position:absolute;
  top:0;
  left:50%;
  transform: translate(-50%, -50%);
  width:86px;
  height:86px;
  border-radius:50%;
  background: rgba(255,255,255,.9);
  display:grid;
  place-items:center;
  border: 6px solid rgba(255,255,255,.22);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  overflow:hidden;
}
.logo-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.title{
  margin: 6px 0 6px;
  text-align:center;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
}
.subtitle{
  margin: 0 0 26px;
  text-align:center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.form{ display:grid; gap:14px; margin-top: 8px; }

.field{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
}

.icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  color: #364152;
  opacity:.9;
}

.field input{
  width:100%;
  border:none;
  outline:none;
  background: transparent;
  font-size: 15px;
  color: var(--field-text);
}

.btn{
  margin-top: 6px;
  width:100%;
  border:none;
  cursor:pointer;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}
.btn:hover{ filter: brightness(1.03); }

.footer{
  margin-top: 18px;
  text-align:center;
  color: rgba(255,255,255,.90);
  font-size: 13px;
  font-weight: 600;
}

.error-box{
  background:#ffeded;
  color:#b00020;
  padding:10px 14px;
  border-radius:10px;
  font-size:14px;
  margin-bottom:14px;
  text-align:center;
}


@media (max-width: 420px){
  .card{ padding: 50px 18px 24px; }
  .title{ font-size: 28px; }
  .logo-wrap{ width:78px; height:78px; }
}
