/* ================================
   CloudInvoicePro Auth UI
   Black + Orange Brand Theme
   No Vite / No Build
================================== */

:root{
  /* background */
  --bg0:#050507;
  --bg1:#0b0b0b;

  /* panels */
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.035);
  --line:rgba(255,255,255,.14);

  /* text */
  --text:#ffffff;
  --muted:#9ca3af;

  /* brand */
  --p1:#f05a28;   /* primary orange */
  --p2:#ea580c;   /* deep orange */

  --danger:#ef4444;

  --radius:18px;
  --shadow:0 22px 70px rgba(0,0,0,.6);
}

/* page background */
.auth-body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(240,90,40,.22), transparent 55%),
    radial-gradient(700px 480px at 90% 10%, rgba(240,90,40,.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 16px;
}

/* card */
.auth-card{
  width:100%;
  max-width:460px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  animation: cardIn .35s ease-out both;
}

@keyframes cardIn{
  from{opacity:0; transform:translateY(8px) scale(.98)}
  to{opacity:1; transform:translateY(0) scale(1)}
}

/* glow */
.auth-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(420px 260px at 20% 10%, rgba(240,90,40,.35), transparent 60%),
    radial-gradient(520px 320px at 80% 120%, rgba(240,90,40,.25), transparent 60%);
  filter: blur(26px);
  opacity:.6;
  z-index:0;
}

.auth-inner{
  position:relative;
  z-index:1;
  padding:24px 24px 18px;
}

/* brand */
.auth-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.auth-logo{
  width:46px;
  height:46px;
  border-radius:14px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  box-shadow: 0 18px 40px rgba(240,90,40,.35);
}

.auth-title{
  margin:0;
  font-size:28px;
  font-weight:900;
  letter-spacing:.2px;
}

.auth-sub{
  margin:4px 0 0;
  font-size:12.5px;
  color:var(--muted);
}

/* form */
.auth-form{ margin-top:14px; }
.auth-group{ margin-top:12px; }

.auth-label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}

.auth-input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color:var(--text);
  outline:none;
  transition:.2s ease;
}

.auth-input::placeholder{ color:rgba(255,255,255,.35); }

.auth-input:focus{
  border-color: rgba(240,90,40,.7);
  box-shadow: 0 0 0 4px rgba(240,90,40,.22);
}

/* row */
.auth-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:12px;
}

.auth-check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
}

.auth-check input{
  width:16px;
  height:16px;
  accent-color: var(--p1);
}

/* button */
.auth-btn{
  width:100%;
  margin-top:16px;
  padding:12px 14px;
  border:0;
  cursor:pointer;
  border-radius:14px;
  font-weight:900;
  color:#0b0b0b;
  background: white;
  box-shadow: 0 16px 40px rgba(240,90,40,.35);
  transition:.15s ease;
}

.auth-btn:hover{
  filter:brightness(1.05);
  box-shadow: 0 22px 55px rgba(240,90,40,.45);
}

.auth-btn:active{ transform:translateY(1px); }

/* footer */
.auth-footer{
  border-top:1px solid var(--line);
  padding:14px 22px;
  font-size:12px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
}

/* alerts */
.auth-alert{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size:12.5px;
}

.auth-error{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
  color:#fecaca;
}
