:root{
  --brand:#00C7E5; /* ADF cyan from logo */
  --brand-dark:#6a0c0c;
  --bg:#2B3233; /* deep blue background inspired by reference */
  --text:#ffffff;
  --muted:#cfe8f1;
  --input:#232525;
  --shadow: 0 20px 60px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  display:grid;
  place-items:center;
}

.wrapper{
  width: min(900px, 92vw);
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items:center;
}

.brand{
  display:flex;
  align-items:center;
  gap:1rem;
}

.brand img{
  width: 400px;
  height:auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.35));
}

.brand h1{
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  margin:0;
  letter-spacing: .5px;
  font-weight: 800;
}

.panel{
  background: rgba(255,255,255,.06);
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.title{
  margin:0 0 10px 0;
  font-weight:700;
  font-size: 18px;
  color: var(--muted);
}

label{
  font-size: 14px;
  color: var(--muted);
  display:block;
  margin:16px 0 6px;
}

input[type="text"], input[type="password"], input[type="email"]{
  width:100%;
  padding:14px 14px;
  border-radius: 12px;
  border:1px solid transparent;
  background: var(--input);
  color: var(--text);
  outline:none;
  transition: .2s border-color ease, .2s transform ease;
}

input::placeholder{color:#b9c7ff}

input:focus{
  border-color: var(--brand);
  transform: translateY(-1px);
}

button.primary{
  margin-top:18px;
  width:100%;
  padding:14px 18px;
  border:none;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--brand), #00a9c7);
  color:#fff;
  font-weight: 800;
  letter-spacing:.3px;
  cursor:pointer;
  transition: transform .06s ease, filter .2s ease;
}

button.primary:hover{ filter:brightness(1.02) }
button.primary:active{ transform: scale(.99) }
a{
  color: var(--muted);
  text-decoration: none;
}
a:hover{ text-decoration: underline }

.footer-copy{
  margin-top:12px;
  font-size:12px;
  color:#b9c7ff;
  opacity:.9;
}

.center{
  text-align:center;
}

.small{
  font-size:12px;
  opacity: .9;
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 18, 51, .55);
  padding: 20px;
  z-index: 10;
}
.modal.active{ display:flex }
.modal-card{
  width: min(520px, 92vw);
  background: #df4c4c;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px;
  color: #eaf7fb;
  box-shadow: var(--shadow);
}
.modal-card h3{
  margin:0 0 10px 0;
  font-size: 18px;
}
.modal-card p{ margin:0 0 16px 0 }
.modal-actions{
  display:flex;
  justify-content: flex-end;
  gap:10px;
}
button.secondary{
  background: transparent;
  border:1px solid rgba(255,255,255,.25);
  color:#eaf7fb;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
}

/* Responsive tweaks */
@media (max-width: 900px){
  .wrapper{
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: min(720px, 94vw);
  }
  .brand{ justify-content: center; }
  .brand img{ width: 220px; max-width: 70vw; }
  .panel{ padding: 22px; }
  body{ place-items: start; padding: 24px 14px; }
}

@media (max-width: 560px){
  .brand img{ width: 160px; max-width: 62vw; }
  .panel{ padding: 18px; border-radius: 14px; }
  input[type="text"], input[type="password"], input[type="email"]{
    padding: 12px 12px; border-radius: 10px;
  }
  button.primary{ padding: 12px 14px; border-radius: 12px; }
  .title, .footer-copy{ text-align: center; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
