@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --text:#eaf1ff;
  --muted:#9fb2d4;
  --blue:#63b2ff;
  --blue2:#3ed9ff;
  --gold:#d8a85f;
  --panel:rgba(6,12,22,.90);
  --panel2:rgba(10,18,32,.94);
  --line:rgba(121,157,255,.25);
  --shadow:0 24px 60px rgba(0,0,0,.5);
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:
    linear-gradient(180deg, rgba(2,5,10,.92), rgba(2,6,12,.96)),
    url('assets/img/pexels-benjaminfarren-background2.jpg') center/cover fixed no-repeat;
}

a{color:#dbe7ff;text-decoration:none}
a:hover{color:#fff}

.sf-shell{
  width:min(1500px, 96vw);
  margin:0 auto;
  padding:18px 18px 28px;
}

.sf-header{
  overflow:hidden;
  border-radius:22px;
  border:1px solid var(--line);
  background:var(--panel2);
  box-shadow:var(--shadow);
}

.sf-banner{
  min-height:260px;
  background:
    linear-gradient(180deg, rgba(4,8,16,.25), rgba(4,8,16,.78)),
    url('assets/img/starforgeWebBanner.png') center/cover no-repeat;
}

.sf-banner-overlay{
  min-height:260px;
  display:grid;
  grid-template-columns:1.2fr .9fr;
  gap:24px;
  padding:24px;
  background:linear-gradient(90deg, rgba(3,7,14,.72), rgba(3,7,14,.35));
}

.sf-brand-row{
  display:flex;
  align-items:flex-start;
  gap:18px;
}

.sf-brand-logo{
  max-height:88px;
  width:auto;
  display:block;
  filter:drop-shadow(0 0 16px rgba(98,178,255,.28));
}

.sf-brand-copy small{
  display:block;
  margin-bottom:10px;
  color:#d2ddf2;
  font-family:'Rajdhani',sans-serif;
  font-size:14px;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.sf-brand-copy h1{
  margin:0 0 14px;
  font-family:'Orbitron',sans-serif;
  font-size:clamp(38px,4vw,62px);
  line-height:.95;
}

.sf-brand-copy p{
  margin:0;
  max-width:680px;
  font-size:18px;
  color:#d8e3f8;
  line-height:1.55;
}

.sf-hero-panel{
  align-self:center;
  padding:22px;
  border-radius:18px;
  border:1px solid rgba(121,157,255,.22);
  background:rgba(6,13,24,.74);
  backdrop-filter:blur(4px);
}

.sf-badge{
  display:inline-block;
  margin-bottom:12px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(98,178,255,.28);
  background:rgba(98,178,255,.10);
  color:#d7e8ff;
  font-family:'Rajdhani',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.sf-hero-panel h2{
  margin:0 0 10px;
  font-family:'Orbitron',sans-serif;
  font-size:clamp(28px,3vw,42px);
  line-height:1.05;
}

.sf-hero-panel p{
  margin:0;
  color:#d5e1f5;
  line-height:1.6;
}

.sf-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.sf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:12px;
  font-family:'Rajdhani',sans-serif;
  font-size:15px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:.2s ease;
}

.sf-btn--primary{
  color:#07111d;
  background:linear-gradient(135deg, #7ad8ff, #6a97ff);
  box-shadow:0 12px 24px rgba(84,126,255,.25);
}

.sf-btn--secondary{
  color:#edf4ff;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(121,157,255,.24);
}

.sf-btn:hover{
  transform:translateY(-1px);
}

.sf-nav-wrap{
  border-top:1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
}

.sf-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:12px 18px;
}

.sf-nav-group{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.sf-nav a{
  padding:8px 12px;
  border-radius:10px;
  color:#f2f6ff;
  font-family:'Rajdhani',sans-serif;
  font-size:15px;
  font-weight:700;
  letter-spacing:.04em;
}

.sf-nav a:hover{
  background:rgba(255,255,255,.08);
}

.sf-frame-wrap{
  margin-top:20px;
  border-radius:22px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.sf-frame-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:16px 20px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.02);
}

.sf-frame-title{
  font-family:'Orbitron',sans-serif;
  font-size:20px;
}

.sf-frame-sub{
  margin-top:4px;
  color:var(--muted);
  font-size:14px;
}

.sf-status-inline{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  color:var(--muted);
  font-size:14px;
}

.sf-status-inline strong{
  color:#fff;
}

.sf-frame{
  width:100%;
  height:1100px;
  border:0;
  display:block;
  background:#000;
}

@media (max-width: 980px){
  .sf-banner-overlay{
    grid-template-columns:1fr;
  }

  .sf-nav{
    flex-direction:column;
    align-items:flex-start;
  }

  .sf-frame-head{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 700px){
  .sf-shell{
    width:100%;
    padding:10px;
  }

  .sf-banner-overlay{
    padding:16px;
  }

  .sf-brand-row{
    flex-direction:column;
  }

  .sf-brand-logo{
    max-height:72px;
  }

  .sf-frame{
    height:900px;
  }
}

/* ===== Auth page layout ===== */

.sf-auth-shell{
  min-height:100vh;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:24px 18px;
}

.sf-auth-wrap{
  width:min(1280px, 96vw);
  display:grid;
  grid-template-columns:minmax(380px, 1fr) minmax(440px, 560px);
  gap:24px;
  align-items:stretch;
}

.sf-auth-aside{
  min-height:auto;
  padding:14px;
  border-radius:22px;
  border:1px solid rgba(121,157,255,.22);
  background:
    linear-gradient(180deg, rgba(3,8,16,.72), rgba(3,8,16,.88)),
    url('/assets/img/pexels-benjaminfarren-background2.jpg') center/cover no-repeat;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.sf-auth-form{
  min-height:auto;
  padding:14px;
  border-radius:22px;
  border:1px solid rgba(121,157,255,.22);
  background:rgba(6,13,24,.88);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.sf-auth-head{
  margin-bottom:22px;
}

.sf-auth-head h2{
  margin:10px 0 8px;
  font-family:'Orbitron',sans-serif;
  font-size:clamp(28px, 3vw, 40px);
  line-height:1.05;
}

.sf-auth-head p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.sf-auth-grid{
  display:grid;
  gap:18px;
}

.sf-field{
  display:grid;
  gap:8px;
}

.sf-label{
  color:#aecdff;
  font-family:'Rajdhani',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.sf-input{
  width:100%;
  min-height:52px;
  padding:0 16px;
  border-radius:12px;
  border:1px solid rgba(121,157,255,.22);
  background:rgba(3,8,16,.92);
  color:#eef5ff;
  font-size:16px;
  outline:none;
}

.sf-input:focus{
  border-color:rgba(103,180,255,.55);
  box-shadow:0 0 0 3px rgba(103,180,255,.12);
}

.sf-form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:8px;
}

.sf-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:18px;
}

.sf-footer-links a{
  color:#dbe7ff;
}

.sf-alerts{
  display:grid;
  gap:12px;
  margin-bottom:18px;
}

.sf-alert{
  padding:14px 16px;
  border-radius:14px;
  border:1px solid transparent;
  line-height:1.5;
}

.sf-alert--success{
  background:rgba(84,240,181,.12);
  border-color:rgba(84,240,181,.24);
  color:#dbffee;
}

.sf-alert--danger{
  background:rgba(255,102,125,.12);
  border-color:rgba(255,102,125,.24);
  color:#ffe5ea;
}

.sf-auth-brand{
  margin-bottom:28px;
}

.sf-auth-brand span{
  display:block;
  margin-bottom:8px;
  color:#d5e3fb;
  font-family:'Rajdhani',sans-serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.sf-auth-brand h1{
  margin:0;
  font-family:'Orbitron',sans-serif;
  font-size:clamp(34px, 4vw, 54px);
  line-height:1;
}

.sf-auth-copy h2{
  margin:18px 0 12px;
  font-family:'Orbitron',sans-serif;
  font-size:clamp(28px, 3vw, 42px);
  line-height:1.05;
}

.sf-auth-copy p{
  margin:0;
  color:#e1ebff;
  line-height:1.65;
}

.sf-auth-points{
  display:grid;
  gap:14px;
  margin-top:24px;
}

.sf-auth-point{
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(121,157,255,.18);
  background:rgba(5,11,22,.45);
}

.sf-auth-point strong{
  display:block;
  margin-bottom:4px;
  color:#ffffff;
}

.sf-auth-point span{
  color:#d8e6ff;
  line-height:1.5;
}

@media (max-width: 980px){
  .sf-auth-wrap{
    grid-template-columns:1fr;
  }

  .sf-auth-aside,
  .sf-auth-form{
    min-height:auto;
  }
}

.sf-nav-welcome{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:10px;
  color:#f2f6ff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(121,157,255,.18);
  font-family:'Rajdhani',sans-serif;
  font-size:15px;
  font-weight:700;
  letter-spacing:.04em;
}

    .sf-member-stack{
        display:flex;
        flex-direction:column;
        gap:18px;
    }

    .sf-member-grid{
        display:grid;
        grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
        gap:16px;
    }

    .sf-member-card{
        position:relative;
        overflow:hidden;
    }

    .sf-member-card .sf-card-title{
        margin-bottom:8px;
    }

    .sf-member-card .sf-card-sub{
        margin-bottom:16px;
    }

    .sf-status-row{
        display:flex;
        flex-wrap:wrap;
        gap:10px;
        margin:14px 0 18px;
    }

    .sf-status-pill{
        display:inline-flex;
        align-items:center;
        gap:8px;
        padding:8px 12px;
        border-radius:999px;
        font-size:12px;
        font-weight:700;
        letter-spacing:0.04em;
        text-transform:uppercase;
        border:1px solid rgba(255,255,255,0.14);
        background:rgba(255,255,255,0.06);
        color:#f2f6ff;
    }

    .sf-status-pill--ok{
        background:rgba(74, 201, 126, 0.14);
        border-color:rgba(74, 201, 126, 0.30);
        color:#dffbe9;
    }

    .sf-status-pill--warn{
        background:rgba(255, 183, 77, 0.14);
        border-color:rgba(255, 183, 77, 0.30);
        color:#fff0d2;
    }

    .sf-status-pill--unknown{
        background:rgba(120, 147, 196, 0.12);
        border-color:rgba(120, 147, 196, 0.26);
        color:#dbe6ff;
    }

    .sf-inline-note{
        margin-top:14px;
        padding:14px 16px;
        border-radius:16px;
        border:1px solid rgba(255,255,255,0.10);
        background:rgba(255,255,255,0.04);
        color:#e6edff;
    }

    .sf-inline-note--success{
        background:rgba(74, 201, 126, 0.10);
        border-color:rgba(74, 201, 126, 0.24);
    }

    .sf-inline-note--warn{
        background:rgba(255, 183, 77, 0.10);
        border-color:rgba(255, 183, 77, 0.24);
    }

    .sf-inline-note--neutral{
        background:rgba(120, 147, 196, 0.10);
        border-color:rgba(120, 147, 196, 0.22);
    }

    .sf-inline-note strong{
        display:block;
        margin-bottom:6px;
        color:#ffffff;
    }

    .sf-detail-list{
        display:grid;
        grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
        gap:12px;
        margin-top:14px;
    }

    .sf-detail-item{
        padding:14px 16px;
        border-radius:16px;
        background:rgba(11, 20, 38, 0.58);
        border:1px solid rgba(120, 147, 196, 0.14);
    }

    .sf-detail-item strong{
        display:block;
        margin-bottom:6px;
        font-size:12px;
        text-transform:uppercase;
        letter-spacing:0.05em;
        color:#aebee4;
    }

    .sf-detail-item span{
        display:block;
        color:#ffffff;
        word-break:break-word;
    }

    .sf-kicker{
        display:inline-flex;
        align-items:center;
        padding:6px 10px;
        border-radius:999px;
        font-size:11px;
        font-weight:700;
        letter-spacing:0.05em;
        text-transform:uppercase;
        background:rgba(103,140,255,0.14);
        border:1px solid rgba(103,140,255,0.24);
        color:#dce7ff;
        margin-bottom:12px;
    }

    .sf-plain-list{
        margin:0;
        padding-left:18px;
        color:#dbe6ff;
    }

    .sf-plain-list li + li{
        margin-top:8px;
    }

    .sf-mini-actions{
        display:flex;
        flex-wrap:wrap;
        gap:10px;
        margin-top:16px;
    }

    .sf-mini-actions .sf-btn{
        text-decoration:none;
    }