:root{
  --bg:#f4f6fb; --card:#fff; --ink:#131a2e; --muted:#6b7490; --line:#e3e8f2;
  --brand:#4f57c4; --brand-2:#6f76d8; --neg:#d94a4a;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%}
body{
  font-family:'Cairo',system-ui,'Segoe UI',sans-serif;
  background:linear-gradient(140deg,var(--brand),var(--brand-2));
  color:var(--ink);font-size:14px;
}
.wrap{min-height:100%;display:grid;place-items:center;padding:24px}
.card{
  position:relative;
  width:min(420px,100%);background:var(--card);border-radius:18px;
  box-shadow:0 24px 60px rgba(19,26,46,.28);padding:26px 24px 24px;
}
.head{display:flex;align-items:center;gap:13px;margin-bottom:20px}
.logo{
  width:44px;height:44px;flex:none;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(140deg,var(--brand),var(--brand-2));
  color:#fff;font-size:22px;font-weight:800;
}
h1{margin:0;font-size:19px;font-weight:800;letter-spacing:-.02em}
.sub{margin:2px 0 0;color:var(--muted);font-size:12.5px}

form{display:flex;flex-direction:column;gap:14px}
.f{display:flex;flex-direction:column;gap:6px}
.f label{font-size:12px;font-weight:700;color:var(--muted)}
input{
  font-family:inherit;font-size:14px;padding:11px 13px;
  border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);
}
input:focus{
  outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(79,87,196,.15);
}
.btn{
  font-family:inherit;font-size:14.5px;font-weight:800;cursor:pointer;margin-top:4px;
  padding:12px;border:0;border-radius:10px;background:var(--brand);color:#fff;
}
.btn:hover{filter:brightness(1.07)}
.btn:disabled{opacity:.6;cursor:not-allowed}

.banner{
  padding:11px 13px;border-radius:10px;font-size:12.5px;font-weight:600;
  line-height:1.6;margin-bottom:16px;
  background:#eef0fa;color:var(--brand);border:1px solid #dfe3f6;
}
.banner.bad{background:#fdeaea;color:#a33;border-color:#f2caca}
[hidden]{display:none!important}

.link{
  display:block;width:100%;margin-top:14px;padding:6px;
  background:none;border:0;cursor:pointer;font-family:inherit;
  font-size:12.5px;font-weight:700;color:var(--brand);
}
.link:hover{text-decoration:underline}
.code-input{
  text-align:center;font-size:22px;font-weight:800;letter-spacing:8px;
  font-family:ui-monospace,Consolas,monospace;
}

/* Phones: the card already fills the width, so only the breathing room around
   it and the type come down a step. */
@media (max-width: 760px) {
  .wrap{padding:16px}
  .card{padding:20px 18px 18px;border-radius:16px}
  h1{font-size:18px}
}

/* The language switch, tucked into the card's top corner. */
.lang-btn{
  position:absolute;top:14px;inset-inline-end:14px;
  font-family:inherit;font-size:12px;font-weight:800;cursor:pointer;
  padding:5px 10px;border-radius:8px;border:1px solid var(--line,#e3e8f2);
  background:#fff;color:var(--brand,#4f57c4);
}
.lang-btn:hover{background:#f0f2f9}
