/* Premium login style (R&A) */
:root{
  --bg1:#0b0c14;
  --bg2:#1a1020;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.12);
  --stroke: rgba(255,255,255,.18);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --accent: #d38fb1;
  --accent2:#f1c7da;
  --danger:#ff6b6b;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Display","SF Pro Text", Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(211,143,177,.25), transparent 55%),
    radial-gradient(900px 600px at 85% 30%, rgba(241,199,218,.18), transparent 50%),
    radial-gradient(800px 600px at 55% 90%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  overflow:hidden;
}

.bg-stars{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.55;
  filter: blur(.2px);
}

.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.card{
  width:min(460px, 100%);
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.05));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow:hidden;
}

.header{
  padding:26px 26px 14px;
  display:flex;
  gap:14px;
  align-items:center;
}

.logo{
  width:54px;
  height:54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(211,143,177,.35), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.20);
  display:grid;
  place-items:center;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  overflow:hidden;
}
.logo img{ width:70%; height:70%; object-fit:contain; display:block; }

.title{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}
.title h1{
  margin:0;
  font-size:18px;
  font-weight:700;
  letter-spacing:.2px;
}
.title p{
  margin:6px 0 0;
  font-size:13px;
  color: var(--muted);
}

.body{
  padding: 8px 26px 26px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color: var(--muted);
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  margin-bottom: 14px;
}
.badge .dot{
  width:8px;height:8px;border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--accent2), var(--accent));
  box-shadow: 0 0 18px rgba(211,143,177,.55);
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top: 10px;
}

label{
  font-size:12px;
  color: var(--muted);
}

.input{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(0,0,0,.18);
  transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}
.input:focus-within{
  border-color: rgba(211,143,177,.55);
  box-shadow: 0 0 0 4px rgba(211,143,177,.18);
}
.input svg{ width:18px; height:18px; opacity:.8; }
input[type="password"]{
  width:100%;
  background:transparent;
  border:0;
  outline:none;
  color: var(--text);
  font-size:16px; /* prevents iOS zoom */
  padding: 2px 0;
}

.actions{
  display:flex;
  gap:12px;
  margin-top: 16px;
  align-items:center;
}

.btn{
  width:100%;
  border:0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor:pointer;
  font-size:15px;
  font-weight:700;
  color:#1a0f16;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 18px 40px rgba(211,143,177,.25);
  transition: transform .08s ease, filter .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn:hover{ filter: brightness(1.02); }

.meta{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color: var(--muted);
}
.meta a{
  color: var(--accent2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(241,199,218,.55);
}
.meta a:hover{ border-bottom-style: solid; }

.error{
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 107, .35);
  background: rgba(255,107,107,.10);
  color: rgba(255,255,255,.92);
  font-size:13px;
}

.footer{
  padding: 14px 26px 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color: rgba(255,255,255,.60);
}

@media (max-width: 360px){
  .header{ padding:22px 18px 12px; }
  .body{ padding: 8px 18px 22px; }
  .footer{ padding: 12px 18px 16px; }
  .logo{ width:48px; height:48px; border-radius: 14px; }
}
