/**
 * Project: Besalp Secure Password Link
 * File: custom.css
 *
 * Author: Xhezmi Tairi (Besalp)
 * Version: 1.2.0
 * Date: 2026-01-14
 *
 * Description:
 * Custom user interface styles for the Besalp Secure Password Link application.
 */

/* JetBrains Mono */
@font-face{
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face{
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root{
  --bspl-bg: #1e1966;
  --bspl-panel: #e6e8f2;
  --bspl-panel-dark: #9aa0c8;
  --bspl-ink: #0b1020;
  --bspl-ink-soft: #2b3270;
  --bspl-accent: #0086ff;
  --bspl-accent-soft: #66b6ff;
}

/* =========================
   Base
   ========================= */
.bspl-body{
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(0,134,255,0.20), transparent 55%),
    linear-gradient(180deg, var(--bspl-bg) 0%, #0b0f19 100%);
  color: #e9f2ff;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  line-height: 1.45;
}

/* =========================
   Header
   ========================= */
.bspl-topbar{
  background: rgba(30,25,102,0.92);
	border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 14px 0;
}

/* Safe-area handling for iOS PWA standalone mode */
.bspl-standalone .bspl-topbar{
	padding-top: calc(14px + env(safe-area-inset-top));
}

.bspl-brand{
  display:flex;
  gap: 12px;
  align-items:center;
}

.bspl-logo{
  height: 40px;
}

.bspl-title-main{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.bspl-title-sub{
  font-size: 12px;
  color: rgba(233,242,255,0.75);
}

/* =========================
   Main
   ========================= */
.bspl-main{
  padding-top: 22px;
  padding-bottom: 32px;
}

.bspl-standalone .bspl-main{
	padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

/* =========================
   Panels
   ========================= */
.bspl-panel{
  background: rgba(230,232,242,0.96);
  color: var(--bspl-ink);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  padding: 18px;
}

.bspl-panel-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  background: rgba(0,134,255,0.12);
  color: var(--bspl-ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  margin-bottom: 14px;
  border: 1px solid rgba(0,134,255,0.25);
}

.bspl-panel-title span{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bspl-panel-title span::before{
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--bspl-accent);
  box-shadow: 0 0 0 4px rgba(0,134,255,0.16);
}

/* =========================
   Forms
   ========================= */
.bspl-label{
  font-weight: 800;
}

.bspl-input{
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: none;
}

.bspl-input:focus{
  border-color: rgba(0,134,255,0.75);
  box-shadow: 0 0 0 3px rgba(0,134,255,0.18);
}

.bspl-help{
  font-size: 12px;
  color: rgba(43,50,112,0.88);
  margin-top: 6px;
}

/* =========================
   Buttons
   ========================= */
.bspl-btn{
  border-radius: 12px;
  font-weight: 800;
  padding: 10px 14px;
}

.bspl-btn-sm{
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 12px;
}

.bspl-btn.btn-primary{
  background-color: var(--bspl-accent);
  border-color: transparent;
}

.bspl-btn.btn-primary:hover{
  background-color: #006fda;
}

.bspl-btn.btn-success{
  background-color: #0b1020;
  border-color: transparent;
}

.bspl-btn.btn-success:hover{
  background-color: #070b16;
}

.bspl-panel-title .bspl-btn-sm{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.14);
  color: var(--bspl-ink);
}

.bspl-panel-title .bspl-btn-sm:hover{
  background: rgba(255,255,255,0.92);
}

/* =========================
   Blocks
   ========================= */
.bspl-divider{
  height: 1px;
  background: rgba(0,0,0,0.14);
  margin: 14px 0;
}

.bspl-note-title{
  font-weight: 900;
  margin-bottom: 8px;
}

.bspl-list{
  margin: 0;
  padding-left: 18px;
}

.bspl-mono{
  word-break: break-all;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
}

/* =========================
   System status KV
   ========================= */
.bspl-kv{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 10px;
  align-items:center;
}

.bspl-k{
  font-weight: 900;
  color: rgba(11,16,32,0.92);
}

.bspl-v{
  color: rgba(11,16,32,0.82);
}

/* =========================
   Captcha & alerts
   ========================= */
.bspl-captcha{
  border-radius: 12px;
  background: #efefef;
  border: 1px solid rgba(0,0,0,0.12);
}

.bspl-alert{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
}

/* =========================
   FAQ
   ========================= */
.bspl-faq-item{
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

.bspl-faq-item:last-child{
  border-bottom: none;
}

.bspl-faq-q{
  font-weight: 900;
  color: var(--bspl-ink);
  margin-bottom: 6px;
}

.bspl-faq-a{
  color: rgba(43,50,112,0.88);
}

/* =========================
   Footer
   ========================= */
.bspl-footer{
  background: rgba(11,15,25,0.88);
  color: rgba(233,242,255,0.70);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.bspl-standalone .bspl-footer{
	padding-bottom: env(safe-area-inset-bottom);
}

.bspl-footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 0;
}

.bspl-footer a{
  color: rgba(233,242,255,0.75);
  text-decoration: none;
}

.bspl-footer a:hover{
  color: #ffffff;
}

.bspl-footer-center{
  opacity: 0.85;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 576px){
  .bspl-footer-inner{
    flex-direction: column;
    text-align: center;
  }

  .bspl-kv{
    grid-template-columns: 100px 1fr;
  }

  .bspl-logo{
    height: 36px;
  }
}
