:root{
  --bg0:#060810;
  --bg1:#0a0f1c;

  --card: rgba(16, 20, 32, 0.88);
  --line: rgba(255,255,255,0.14);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.66);

  --red:#d7262b;
  --red2:#ff3b30;
}

/* Hard reset for a standalone auth page */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body{
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  background:
    radial-gradient(900px 520px at 18% 12%, rgba(215, 38, 43, 0.22), transparent 62%),
    radial-gradient(900px 620px at 80% 0%, rgba(90, 130, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

/* subtle grid texture */
body::after{
  content:"";
  position: fixed;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.06;
  mask-image: radial-gradient(circle at 50% 25%, black 35%, transparent 78%);
  pointer-events:none;
}

/* Layout */
.login-shell{
  min-height: 100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 2.5rem 1rem;
  position:relative;
}

.login-card{
  width:100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 25px 80px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.login-inner{ padding: 1.85rem; }

.login-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Typography */
.login-title{
  margin: 0;
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 1.6rem;
  color: rgba(255,255,255,0.96);
}

.login-subtitle{
  margin-top: .55rem;
  color: rgba(255,255,255,0.62);
  font-size: .95rem;
}

.accent-line{
  height:2px;
  width: 140px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--red), var(--red2));
  margin-top:.65rem;
}

.badge-secure{
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.84);
  padding: .35rem .7rem;
  font-weight: 650;
  border-radius: 999px;
  font-size: .78rem;
  white-space: nowrap;
  margin-top: 2px;
}

.btn-icon{
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .9;
}

/* Provider login buttons */
.login-actions{
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.btn-divider{
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .82rem;
  margin: -.1rem 0;
}
.btn-divider::before,
.btn-divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

/* Shared button base */
.btn-proton,
.btn-proton-ms{
  width: 100%;
  border-radius: 10px;
  padding: 0.95rem 1.25rem;

  font-weight: 650;
  letter-spacing: .2px;
  font-size: 0.98rem;

  color: #fff;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;

  border: 1px solid rgba(255,255,255,0.10);

  box-shadow:
    0 6px 16px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.18);

  transition:
    background .15s ease,
    transform .08s ease,
    box-shadow .15s ease;
}

/* Google — red */
.btn-proton{
  background: linear-gradient(180deg, #f04438 0%, #d92d20 100%);
}
.btn-proton:hover{
  background: linear-gradient(180deg, #e53935 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Microsoft — blue */
.btn-proton-ms{
  background: linear-gradient(180deg, #1a7fe8 0%, #0062c8 100%);
}
.btn-proton-ms:hover{
  background: linear-gradient(180deg, #2389f0 0%, #1070d0 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Supporting text / footer */
.note{
  margin-top: 1rem;
  color: var(--muted);
  font-size: .9rem;
}

.foot{
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: .85rem;
  color: rgba(255,255,255,0.52);
}

/* Flash messages */
.login-flash {
  margin-top: .75rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
  text-align: center;
}
.login-flash--warning, .login-flash--danger {
  background: rgba(220,53,69,.18);
  border: 1px solid rgba(220,53,69,.4);
  color: #f8c4ca;
}
.login-flash--success {
  background: rgba(25,135,84,.18);
  border: 1px solid rgba(25,135,84,.4);
  color: #9eebc8;
}
.login-flash--info {
  background: rgba(13,110,253,.18);
  border: 1px solid rgba(13,110,253,.4);
  color: #9ec5fe;
}
