/* ============ RESET & VARS ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0f172a;
  --bg-2: #1e293b;
  --card: #1e293b;
  --card-2: #273449;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #6366f1;
  --primary-2: #818cf8;
  --vip: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --border: #334155;
  --radius: 12px;
}
body {
  font-family: 'Pyidaungsu', 'Myanmar Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #1e293b 0%, #0f172a 60%);
  color: var(--text); min-height: 100vh; line-height: 1.6;
}
a { color: var(--primary-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }

/* ============ TOPBAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 10px 16px;
}
.brand { font-weight: 700; font-size: 20px; color: #fff; }
.brand:hover { color: var(--primary-2); }
.search { flex: 1; max-width: 400px; }
.search input {
  width: 100%; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text); outline: none;
}
.search input:focus { border-color: var(--primary); }
.topnav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topnav a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-2); font-size: 18px;
  transition: background .2s, transform .2s;
}
.topnav a:hover { background: var(--primary); transform: translateY(-2px); }
.avatar-mini img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary);
}

/* ============ CONTAINER / CARDS / BUTTONS ============ */
.container { max-width: 1180px; margin: 24px auto; padding: 0 16px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.card h2, .card h3 { color: #fff; margin-bottom: 10px; font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; border: 0;
  background: var(--primary); color: #fff; font-weight: 600;
  cursor: pointer; transition: transform .15s, background .2s; font-size: 14px;
}
.btn:hover { background: var(--primary-2); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--card-2); }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-vip { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
  font-family: inherit; font-size: 15px;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }
.form-group textarea { resize: vertical; min-height: 90px; }

/* ============ POST ============ */
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.post-meta { font-size: 12px; color: var(--muted); }
.post-content { margin: 10px 0; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }

/* ============ FACEBOOK-STYLE POST GALLERY ============ */
.fb-gallery {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0;
  background: #000;
}
.fb-gallery .thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: #000;
}
.fb-gallery .thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity .15s;
  margin: 0;
}
.fb-gallery .thumb:hover img { opacity: .9; }

.fb-gallery .more-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700;
  pointer-events: none;
}

/* --- 1 image --- */
.fb-gallery[data-count="1"] { grid-template-columns: 1fr; }
.fb-gallery[data-count="1"] .thumb {
  aspect-ratio: auto;
  max-height: 560px;
  background: #000;
}
.fb-gallery[data-count="1"] .thumb img {
  max-height: 560px;
  object-fit: contain;
}

/* --- 2 images --- */
.fb-gallery[data-count="2"] { grid-template-columns: 1fr 1fr; }

/* --- 3 images (FB classic: 1 big left, 2 stacked right) --- */
.fb-gallery[data-count="3"] {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 400px;
}
.fb-gallery[data-count="3"] .thumb:nth-child(1) { grid-row: 1 / 3; grid-column: 1; }
.fb-gallery[data-count="3"] .thumb:nth-child(2) { grid-row: 1;     grid-column: 2; }
.fb-gallery[data-count="3"] .thumb:nth-child(3) { grid-row: 2;     grid-column: 2; }
.fb-gallery[data-count="3"] .thumb { aspect-ratio: auto; }

/* --- 4 images (2x2) --- */
.fb-gallery[data-count="4"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 400px;
}
.fb-gallery[data-count="4"] .thumb { aspect-ratio: auto; }

/* --- 5 images (2 top, 3 bottom) --- */
.fb-gallery[data-count="5"] {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr;
  height: 400px;
}
.fb-gallery[data-count="5"] .thumb { aspect-ratio: auto; }
.fb-gallery[data-count="5"] .thumb:nth-child(1),
.fb-gallery[data-count="5"] .thumb:nth-child(2) { grid-column: span 3; }
.fb-gallery[data-count="5"] .thumb:nth-child(3),
.fb-gallery[data-count="5"] .thumb:nth-child(4),
.fb-gallery[data-count="5"] .thumb:nth-child(5) { grid-column: span 2; }

/* --- 6 images (3x2) --- */
.fb-gallery[data-count="6"] {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 400px;
}
.fb-gallery[data-count="6"] .thumb { aspect-ratio: auto; }

/* --- more than 6 (show 6 with +N) --- */
.fb-gallery[data-count="more"] {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 400px;
}
.fb-gallery[data-count="more"] .thumb { aspect-ratio: auto; }

/* Hidden extra images (display:none) don't affect grid */
.fb-gallery > img { display: none; }

/* Mobile adjust */
@media (max-width: 640px) {
  .fb-gallery[data-count="3"],
  .fb-gallery[data-count="4"],
  .fb-gallery[data-count="5"],
  .fb-gallery[data-count="6"],
  .fb-gallery[data-count="more"] { height: 300px; }
  .fb-gallery[data-count="1"] .thumb img { max-height: 400px; }
}

/* ============ POST ACTIONS ============ */
.post-actions {
  display: flex; gap: 6px; border-top: 1px solid var(--border);
  padding-top: 10px; margin-top: 10px;
}
.post-actions button, .post-actions a {
  background: transparent; border: 0; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; gap: 5px;
}
.post-actions button:hover, .post-actions a:hover { background: var(--card-2); color: #fff; }
.post-actions .liked { color: var(--primary-2); font-weight: 700; }

/* ============ COMMENTS ============ */
.comments { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.comment { display: flex; gap: 10px; margin-bottom: 10px; }
.comment img { width: 34px; height: 34px; border-radius: 50%; }
.comment-body { background: var(--card-2); padding: 8px 12px; border-radius: 12px; flex: 1; }
.comment-body strong { font-size: 13px; color: #fff; }
.comment-body p { font-size: 14px; margin-top: 2px; }
.comment-form { display: flex; gap: 8px; margin-top: 8px; }
.comment-form input {
  flex: 1; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
}

/* ============ BADGES ============ */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.badge-vip { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.badge-admin { background: #8b5cf6; color: #fff; }

/* ============ PROFILE ============ */
.profile-cover {
  height: 220px; border-radius: var(--radius);
  background-size: cover; background-position: center;
  margin-bottom: -60px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.profile-header {
  display: flex; align-items: flex-end; gap: 18px;
  padding: 0 20px; margin-bottom: 16px; flex-wrap: wrap;
}
.profile-avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--bg); box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.profile-info h1 { color: #fff; font-size: 22px; }
.profile-info p { color: var(--muted); font-size: 13px; }
.profile-stats { display: flex; gap: 20px; margin: 10px 0; }
.profile-stats div { text-align: center; }
.profile-stats strong { display: block; font-size: 18px; color: #fff; }

/* ============ LAYOUT ============ */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* ============ CHAT ============ */
.chat-wrapper { display: grid; grid-template-columns: 280px 1fr; gap: 16px; height: calc(100vh - 160px); }
.chat-side { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow-y: auto; }
.chat-side .contact { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.chat-side .contact:hover, .chat-side .contact.active { background: var(--card-2); }
.chat-side .contact img { width: 42px; height: 42px; border-radius: 50%; }
.chat-side .contact strong { font-size: 14px; color: #fff; }
.chat-side .contact span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.chat-main { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.chat-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.chat-header img { width: 38px; height: 38px; border-radius: 50%; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 70%; padding: 9px 13px; border-radius: 16px; font-size: 14px; word-wrap: break-word; position: relative; }
.msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--card-2); border-bottom-left-radius: 4px; }
.msg img, .msg .file-link { max-width: 220px; border-radius: 8px; margin-top: 4px; }
.msg .msg-time { display: block; font-size: 10px; opacity: .7; margin-top: 4px; }
.msg .del-msg { position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; cursor: pointer; display: none; }
.msg.me:hover .del-msg { display: block; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-input input[type=text] { flex: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); }
.chat-input label { cursor: pointer; font-size: 20px; padding: 6px 10px; border-radius: 8px; }
.chat-input label:hover { background: var(--card-2); }
.chat-input input[type=file] { display: none; }

/* ============ EMOJI ============ */
.emoji-btn { background: transparent; border: 0; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.emoji-picker {
  position: absolute; bottom: 60px; right: 20px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px;
  display: none; flex-wrap: wrap; gap: 4px;
  max-width: 260px; z-index: 10;
}
.emoji-picker.open { display: flex; }
.emoji-picker button { background: transparent; border: 0; font-size: 20px; cursor: pointer; padding: 4px; border-radius: 6px; }
.emoji-picker button:hover { background: var(--primary); }

/* ============ ALERTS ============ */
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.alert-error { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }
.alert-success { background: rgba(16,185,129,.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,.4); }
.alert-info { background: rgba(99,102,241,.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,.4); }

/* ============ TABLE ============ */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }

/* ============ FOOTER ============ */
.footer { text-align: center; padding: 30px 16px; color: var(--muted); font-size: 13px; }

/* ============ AUTH / DROPDOWN ============ */
.auth-card { max-width: 440px; margin: 60px auto; }
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; right: 0; top: 100%; background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; min-width: 160px; z-index: 100; overflow: hidden; }
.dropdown-content a { display: block; padding: 10px 14px; color: var(--text); font-size: 14px; }
.dropdown-content a:hover { background: var(--primary); color: #fff; }
.dropdown.open .dropdown-content { display: block; }

/* ============ IMAGE MODAL (Facebook-style viewer) ============ */
.image-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 60px 80px 110px;
}
.image-modal.open { display: flex; }

.image-modal .modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-drag: none;
}

.image-modal .modal-close,
.image-modal .modal-prev,
.image-modal .modal-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background .2s;
  z-index: 2;
}
.image-modal .modal-close:hover,
.image-modal .modal-prev:hover,
.image-modal .modal-next:hover { background: #6366f1; border-color: #6366f1; }

.image-modal .modal-close { top: 16px; right: 16px; font-size: 18px; }
.image-modal .modal-prev  { left: 16px;  top: 50%; transform: translateY(-50%); font-size: 32px; }
.image-modal .modal-next  { right: 16px; top: 50%; transform: translateY(-50%); font-size: 32px; }

.image-modal .modal-counter {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.image-modal .modal-thumbs {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  max-width: 90vw;
  overflow-x: auto;
  padding: 6px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  z-index: 2;
}
.image-modal .modal-thumbs::-webkit-scrollbar { height: 6px; }
.image-modal .modal-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 999px; }
.image-modal .modal-thumbs img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: opacity .2s;
}
.image-modal .modal-thumbs img:hover { opacity: 0.85; }
.image-modal .modal-thumbs img.active { opacity: 1; border-color: #fff; }

@media (max-width: 640px) {
  .image-modal { padding: 50px 10px 90px; }
  .image-modal .modal-close { width: 38px; height: 38px; }
  .image-modal .modal-prev, .image-modal .modal-next { width: 38px; height: 38px; font-size: 24px; }
  .image-modal .modal-thumbs img { width: 42px; height: 42px; }
  .image-modal .modal-counter { top: 12px; font-size: 12px; }
}

/* ============ USER GALLERY PAGE (gallery.php) ============ */
.gallery-header {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(239,68,68,.08));
  border-radius: var(--radius); border: 1px solid var(--border);
  margin-bottom: 16px; flex-wrap: wrap;
}
.gallery-header img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary);
}
.gallery-header h1 { font-size: 20px; color: #fff; }
.gallery-header p { font-size: 13px; color: var(--muted); }

.user-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.user-gallery-grid .g-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--card-2);
  cursor: pointer;
}
.user-gallery-grid .g-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s, opacity .2s;
}
.user-gallery-grid .g-item:hover img { transform: scale(1.08); opacity: .9; }

.gallery-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.gallery-empty .big { font-size: 54px; margin-bottom: 12px; }

@media (max-width: 640px) {
  .user-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 3px; }
}

/* ===================================================================
   AUTH SPLIT LOGIN PAGE
   =================================================================== */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
}

/* ===== LEFT — VISUAL PANEL ===== */
.auth-visual {
  position: relative;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #ec4899 100%);
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.auth-visual::before,
.auth-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: floatOrb 14s ease-in-out infinite alternate;
}
.auth-visual::before {
  width: 480px; height: 480px;
  background: #ec4899;
  top: -160px; left: -160px;
}
.auth-visual::after {
  width: 420px; height: 420px;
  background: #06b6d4;
  bottom: -140px; right: -140px;
  animation-delay: 3s;
}
@keyframes floatOrb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.15); }
}

.auth-visual-inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
}

.auth-visual .visual-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 40px;
}
.auth-visual .visual-brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: 14px;
  font-size: 26px;
  backdrop-filter: blur(10px);
}

.auth-visual h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #fff;
}
.auth-visual h1 .grad {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-visual .lede {
  font-size: 17px;
  line-height: 1.7;
  opacity: .9;
  margin-bottom: 40px;
}

/* Feature pills */
.visual-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.visual-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: transform .25s, background .25s;
}
.visual-feature:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.16);
}
.visual-feature .icon {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 20px;
  flex-shrink: 0;
}
.visual-feature strong { font-size: 15px; font-weight: 700; }
.visual-feature small {
  display: block;
  font-size: 12.5px;
  opacity: .85;
  margin-top: 2px;
}

.visual-stats {
  display: flex;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.visual-stats div strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
}
.visual-stats div span {
  font-size: 12px;
  opacity: .85;
  letter-spacing: .3px;
}

/* ===== RIGHT — FORM SIDE ===== */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(99,102,241,.08), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(236,72,153,.06), transparent 70%),
    var(--bg);
  position: relative;
}

.auth-form-box {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  animation: slideUp .35s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.auth-form-box .mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
}

.auth-form-box h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.auth-form-box .sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
}

.auth-form-box .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 7px;
}
.auth-form-box .form-group input {
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 12px;
}

.input-icon {
  position: relative;
}
.input-icon input {
  padding-left: 44px !important;
}
.input-icon::before {
  content: attr(data-icon);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  opacity: .65;
  pointer-events: none;
  z-index: 2;
}

.btn-auth {
  width: 100%;
  justify-content: center;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 6px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 8px 22px rgba(99,102,241,.35);
}
.btn-auth:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 10px 26px rgba(99,102,241,.5);
}

.auth-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 6px;
  font-size: 13.5px;
}
.auth-extras label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  cursor: pointer;
}
.auth-extras a {
  color: var(--primary-2);
  font-weight: 600;
}
.auth-extras a:hover { color: #fff; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 22px 0 18px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}
.auth-bottom a { font-weight: 700; }

/* OTP inputs */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.otp-inputs input {
  width: 52px;
  height: 58px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg-2);
  color: #fff;
  padding: 0 !important;
}
.otp-inputs input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.2);
  outline: none;
}

/* Responsive */
@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-box .mobile-brand { display: flex; }
}
@media (max-width: 480px) {
  .auth-form-box { padding: 28px 22px; border-radius: 16px; }
  .auth-form-box h2 { font-size: 22px; }
  .otp-inputs input { width: 42px; height: 52px; font-size: 22px; }
}