/* ═══════════════════════════════════════════
   JEWAM — Shared Styles
   ═══════════════════════════════════════════ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

/* --- Material Symbols --- */
.msymbol {
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  user-select: none;
}

/* --- Hero Gradient --- */
.hero-gradient {
  background: linear-gradient(135deg, #004470 0%, #00629f 50%, #227bc0 100%);
}

/* --- Tabs --- */
.tab-btn {
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  cursor: pointer;
}
.tab-btn.active {
  color: #00629f;
  border-bottom-color: #00629f;
  font-weight: 700;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Accordions --- */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(0,1,.4,1);
}
.acc-body.open { max-height: 9999px; }
.acc-btn { cursor: pointer; }
.acc-chevron {
  transition: transform .3s ease;
  display: inline-block;
}
.acc-chevron.open { transform: rotate(180deg); }

/* --- Journal Cover --- */
.journal-cover-wrapper:hover { transform: rotate(-5deg); }

/* --- Staff Cards --- */
.staff-card {
  background: #fff;
  transition: box-shadow .25s;
}
.staff-card:hover {
  box-shadow: 0 8px 24px -6px rgba(0,50,100,.1);
}

/* --- Language Buttons --- */
.lang-btn {
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Work Sans', sans-serif;
  font-size: .8rem;
}
.lang-btn.active { color: #00629f; font-weight: 700; }
.lang-btn.inactive { color: #717882; }

/* --- Scrollbar --- */
::-webkit-scrollbar { height: 3px; width: 3px; }
::-webkit-scrollbar-thumb { background: #c0c7d2; border-radius: 2px; }

/* --- Utilities --- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ═══════════════════════════════════════════
   LOGIN PAGE — Specific Styles
   ═══════════════════════════════════════════ */

/* --- Login Hero Panel --- */
.login-hero {
  background: linear-gradient(160deg, #002e4f 0%, #004470 30%, #00629f 65%, #227bc0 100%);
  position: relative;
  overflow: hidden;
}
.login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,.02) 40px,
      rgba(255,255,255,.02) 80px
    );
  pointer-events: none;
}
.login-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Form Inputs --- */
.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #c0c7d2;
  border-radius: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #1a1c1c;
  background: #ffffff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-input::placeholder {
  color: #717882;
}
.login-input:focus {
  border-color: #00629f;
  box-shadow: 0 0 0 3px rgba(0,98,159,.12);
}

/* --- Login Card --- */
.login-card {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 24px -4px rgba(0,40,80,.08);
}

/* --- Primary Button --- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: #00629f;
  color: #ffffff;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.btn-primary:hover {
  background: #227bc0;
  box-shadow: 0 4px 16px -2px rgba(0,98,159,.3);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* --- Outline Button --- */
.btn-outline {
  display: block;
  width: auto;
  margin: 0 auto;
  padding: 0.65rem 2rem;
  background: transparent;
  color: #00629f;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid #00629f;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn-outline:hover {
  background: #00629f;
  color: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(0,98,159,.2);
}

/* --- Checkbox --- */
.login-checkbox {
  accent-color: #00629f;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* --- Edition Badge --- */
.edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 0.5rem;
  padding: 0.65rem 1.1rem;
  transition: background .25s;
}
.edition-badge:hover {
  background: rgba(255,255,255,.18);
}

/* --- Login Layout --- */
.login-wrapper {
  display: flex;
  min-height: calc(100vh - 57px - 80px);
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
}
.login-left {
  flex: 0 0 34%;
  max-width: 34%;
}
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
  }
  .login-left {
    flex: none;
    max-width: 100%;
    min-height: 260px;
  }
  .login-right {
    padding: 2rem 1.25rem;
  }
}

/* --- User Avatar & Dropdown --- */
.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00629f, #227bc0);
  color: #fff;
  border: 2px solid #d0e4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: box-shadow .2s, transform .15s;
  outline: none;
}
.user-avatar-btn:hover {
  box-shadow: 0 0 0 3px rgba(0,98,159,.15);
  transform: scale(1.05);
}
.user-avatar-btn:active {
  transform: scale(0.97);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(192,199,210,.35);
  border-radius: 0.5rem;
  box-shadow: 0 12px 36px -8px rgba(0,30,60,.12), 0 2px 8px -2px rgba(0,30,60,.06);
  z-index: 100;
  overflow: hidden;
  animation: dropdownFade .15s ease;
  padding: 0.35rem 0;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #1a1c1c;
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
  border: none;
  background: none;
}
.user-dropdown-item:hover {
  background: #f3f3f3;
}
.user-dropdown-item .msymbol {
  color: #717882;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
