/* =============================================================
   assets/css/style.css
   Premium Glassmorphism Theme — White base + Green/Blue accent
   Mobile-First (native app এর মতো ফিল দেওয়ার জন্য)
   ============================================================= */

:root {
  --color-bg: #f4f8f7;
  --color-white: #ffffff;

  --color-primary: #16a34a;       /* সবুজ - প্রধান একসেন্ট (trust, community) */
  --color-primary-dark: #15803d;
  --color-primary-light: #86efac;

  --color-secondary: #2563eb;     /* নীল - সেকেন্ডারি একসেন্ট */
  --color-secondary-light: #93c5fd;

  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-danger: #dc2626;

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(31, 41, 55, 0.10);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none; /* native app এর মতো bounce বন্ধ */

  /* --- Anti-theft: টেক্সট সিলেকশন/হাইলাইট বন্ধ (কনটেন্ট প্রোটেকশন) --- */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ফর্ম ফিল্ডে সিলেকশন স্বাভাবিক থাকবে, নাহলে ইউজার টাইপ/এডিট করতে পারবে না */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ছবিতে ড্র্যাগ করে সেভ করা কিছুটা কঠিন করা */
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* -----------------------------------------------------------
   Ambient gradient blobs (glassmorphism এর পেছনের background)
   ----------------------------------------------------------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg-blobs::before,
.bg-blobs::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.bg-blobs::before {
  background: var(--color-primary-light);
  top: -80px;
  left: -80px;
}
.bg-blobs::after {
  background: var(--color-secondary-light);
  bottom: -100px;
  right: -80px;
}

/* -----------------------------------------------------------
   Mobile app-like container (max-width so desktop এ ও mobile ফ্রেমের মতো দেখায়)
   ----------------------------------------------------------- */
.app-shell {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  padding: calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

/* -----------------------------------------------------------
   Glass Card — মূল বিল্ডিং ব্লক
   ----------------------------------------------------------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 26px 22px;
}

/* -----------------------------------------------------------
   Brand / Logo Header
   ----------------------------------------------------------- */
.brand-header {
  text-align: center;
  margin-bottom: 28px;
}
.brand-header .logo-circle {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}
.brand-header h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-text);
}
.brand-header p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin: 0;
}

/* -----------------------------------------------------------
   Form Elements
   ----------------------------------------------------------- */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.input-wrap {
  position: relative;
}
.input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 15px;
}
.form-control {
  width: 100%;
  padding: 13px 14px 13px 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(31, 41, 55, 0.10);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}
.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 15px;
}

/* -----------------------------------------------------------
   Buttons
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.30);
}
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(31, 41, 55, 0.12);
  color: var(--color-text);
}

/* -----------------------------------------------------------
   Small helpers
   ----------------------------------------------------------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.muted-link {
  color: var(--color-text-muted);
  font-size: 13.5px;
  text-decoration: none;
}
.muted-link:hover { color: var(--color-primary); }

.link-primary {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.divider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  color: var(--color-text-muted);
  font-size: 12.5px;
}
.divider-row::before,
.divider-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(31, 41, 55, 0.12);
}

/* -----------------------------------------------------------
   Loading Spinner (button এর ভেতরে)
   ----------------------------------------------------------- */
.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------
   Responsive tweak — বড় স্ক্রিনেও যেন ফোনের ফ্রেমের মতো দেখায়
   ----------------------------------------------------------- */
@media (min-width: 480px) {
  .app-shell {
    padding-top: 48px;
  }
}
