/* =========================================================
   auth.css — লগইন, রেজিস্ট্রেশন ও ড্যাশবোর্ড পেজের স্টাইল
   (public card page এর style.css এর একই কালার টোকেন ব্যবহার করা হয়েছে)
   ========================================================= */

:root{
  --ink: #12151A;
  --ink-soft: #1E232B;
  --paper: #FBF9F5;
  --paper-line: #E7E2D8;
  --gold: #C89B3C;
  --gold-soft: #E7C77E;
  --text: #171A1F;
  --text-muted: #6B7280;
  --danger: #C4433A;
  --success: #3B7A57;
  --radius-md: 14px;
  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink);
  background-image: radial-gradient(circle at 50% 0%, #232a35 0%, var(--ink) 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-wrap{
  width: 100%;
  max-width: 420px;
}

.auth-brand{
  text-align: center;
  margin-bottom: 22px;
}

.auth-brand__mark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}

.auth-brand__title{
  font-family: var(--font-display);
  font-size: 20px;
  color: #F4F1E9;
  margin: 0;
}

.auth-card{
  background: var(--paper);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.5);
}

.auth-card h1{
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--text);
}

.auth-card .sub{
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.field{ margin-bottom: 16px; }

.field label{
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.field .hint-text{
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

.field input,
.field textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
}

.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,155,60,.18);
}

.slug-prefix-group{
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--paper-line);
}

.slug-prefix-group span{
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #F1EEE7;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.slug-prefix-group input{
  border: none;
  border-radius: 0;
}

.slug-prefix-group input:focus{ box-shadow: none; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
}

.btn-primary{
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink);
}

.btn-primary:active{ transform: scale(.98); }

.btn-outline{
  background: transparent;
  border: 1.5px solid var(--paper-line);
  color: var(--text);
}

.auth-switch{
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-switch a{ color: var(--gold); font-weight: 700; text-decoration: none; }

.alert{
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.alert-error{ background: #FBEAE8; color: var(--danger); }
.alert-success{ background: #E9F3ED; color: var(--success); }

/* ---------------- Dashboard extras ---------------- */
.dash-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dash-topbar a{
  font-size: 12.5px;
  color: var(--text-on-ink-muted, #9AA0AC);
  text-decoration: none;
}

.link-box{
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1EEE7;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 22px;
}

.link-box input{
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
}

.link-box input:focus{ outline: none; }

.link-box button{
  border: none;
  background: var(--ink);
  color: #fff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.avatar-preview{
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper-line);
  display: block;
  margin-bottom: 10px;
  background: var(--ink-soft);
}

.section-title{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 26px 0 12px;
}

.section-title:first-of-type{ margin-top: 0; }

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 380px){
  .two-col{ grid-template-columns: 1fr; }
}
