:root {
  --termeh-ink: #173b3d;
  --termeh-teal: #087f81;
  --termeh-deep: #07575c;
}

html,
body,
button,
input,
select,
textarea {
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

.termeh-auth-container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0 !important;
  background: #f2f7f6;
}

.termeh-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 24px;
  background:
    radial-gradient(circle at 12% 16%, rgba(13, 145, 146, .11), transparent 28%),
    radial-gradient(circle at 85% 86%, rgba(13, 145, 146, .09), transparent 30%),
    #f2f7f6;
  color: var(--termeh-ink);
}

.termeh-auth-card {
  display: grid;
  grid-template-columns: minmax(300px, .87fr) minmax(420px, 1.13fr);
  width: min(1080px, 100%);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(8, 87, 92, .10);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 75px rgba(16, 78, 79, .12);
}

.termeh-brand-pane {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 50px 38px;
  background: linear-gradient(145deg, #0b8a8c 0%, #086e73 51%, #064f59 100%);
  color: #fff;
}

.termeh-brand-pane::before,
.termeh-brand-pane::after {
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  content: '';
}

.termeh-brand-pane::before { right: -310px; top: -300px; }
.termeh-brand-pane::after { left: -310px; bottom: -320px; }

.termeh-brand-orbit {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  transform: translate(70px, 65px);
}

.termeh-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.termeh-brand-logo {
  display: block;
  width: min(226px, 65vw);
  height: auto;
  margin: 0 auto 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 47, 51, .20);
}

.termeh-brand-content h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.75;
}

.termeh-form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(28px, 6vw, 78px);
}

.termeh-form-inner { width: min(410px, 100%); }

.termeh-form-inner h2 {
  margin: 0 0 28px;
  color: var(--termeh-ink);
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.6;
}

.termeh-form-inner label {
  color: #34565a;
  font-weight: 500;
}

.termeh-form-inner .form-control {
  min-height: 48px;
  border: 1px solid #d7e4e2;
  border-radius: 12px;
  background: #fbfdfc;
  color: var(--termeh-ink);
  padding: 10px 14px;
  box-shadow: none;
}

.termeh-form-inner .form-control:focus {
  border-color: var(--termeh-teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 129, .14);
}

.termeh-form-inner input[type='email'] {
  direction: ltr;
  text-align: left;
}

.termeh-password-field { position: relative; }

.termeh-password-field .form-control { padding-left: 52px; }

.termeh-password-toggle {
  position: absolute;
  top: 28px;
  left: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5d7d80;
  cursor: pointer;
}

.termeh-password-toggle:hover,
.termeh-password-toggle:focus-visible {
  background: #e8f5f2;
  color: var(--termeh-deep);
}

.termeh-password-toggle svg { width: 21px; height: 21px; }

.termeh-form-inner .btn-brand {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--termeh-teal);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(8, 127, 129, .18);
}

.termeh-form-inner .btn-brand:hover,
.termeh-form-inner .btn-brand:focus {
  background: var(--termeh-deep);
  color: #fff;
}

.termeh-form-inner a,
.termeh-form-inner .text-link {
  color: var(--termeh-teal) !important;
  font-weight: 600;
  text-decoration: none;
}

.termeh-form-inner a:hover { text-decoration: underline; }

.termeh-form-inner a.btn-brand,
.termeh-form-inner a.btn-brand:hover,
.termeh-form-inner a.btn-brand:focus-visible {
  color: #fff !important;
  text-decoration: none;
}

.termeh-switch {
  margin: 8px 0 0;
  color: #658184;
  font-size: .94rem;
  text-align: center;
}

.termeh-approval-note {
  margin: 0 0 12px;
  color: #557478;
  font-size: .86rem;
  text-align: center;
}

/* Room details and recordings */
body:has(.termeh-room) {
  background: #f4f8f7;
}

body:has(.termeh-room) .container.regular-height {
  width: 100%;
  max-width: none;
  padding: 0;
  background: #f4f8f7;
}

body:has(.termeh-room) footer { display: none; }

body:has(.termeh-room) #navbar {
  direction: rtl;
  border-bottom: 1px solid #e0ebea;
  background: #fff;
  box-shadow: 0 4px 24px rgba(20, 78, 78, .04);
}

body:has(.termeh-room) #navbar > .container {
  max-width: 1280px;
  padding: 8px 24px !important;
}

.termeh-room {
  min-height: calc(100vh - 88px);
  padding: 28px clamp(16px, 4vw, 52px) 64px;
  color: var(--termeh-ink);
  background: #f4f8f7;
  text-align: right;
}

.termeh-room .wide-white {
  width: min(1280px, 100%);
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0;
  padding-left: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.termeh-room-top {
  margin-bottom: 22px;
}

.termeh-room-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--termeh-deep);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}

.termeh-room-back:hover { color: var(--termeh-teal); }

.termeh-room-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 190px;
  padding: 34px clamp(24px, 4vw, 52px);
  border: 1px solid #dceae7;
  border-radius: 24px;
  background: linear-gradient(115deg, #fff 56%, #e8f5f2 100%);
  box-shadow: 0 18px 48px rgba(9, 83, 81, .07);
}

.termeh-room-heading { min-width: 0; }
.termeh-room-heading .room-header-wrapper { align-items: flex-start; }
.termeh-room-heading h1 {
  margin: 0 0 10px;
  color: #103f41;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.45;
}
.termeh-room-heading .text-muted { color: #658182 !important; }

.termeh-room-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.termeh-room-actions .btn {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
}

.termeh-room-start {
  padding-inline: 26px;
  border-color: var(--termeh-teal);
  background: var(--termeh-teal);
  box-shadow: 0 9px 20px rgba(8, 127, 129, .18);
}

.termeh-room-copy .dropdown-main,
.termeh-room-copy .dropdown-toggle {
  border-color: #c8ddda;
  background: #fff;
  color: var(--termeh-deep);
}

.termeh-room .nav-tabs {
  direction: rtl;
  gap: 8px;
  padding: 0 12px !important;
  border: 0;
}
.termeh-room .nav-tabs .nav-link {
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 12px 12px 0 0;
  color: #587579;
  font-weight: 650;
}
.termeh-room .nav-tabs .nav-link.active {
  border-color: #dceae7;
  border-bottom-color: #fff;
  background: #fff;
  color: var(--termeh-deep);
}

.termeh-room .tab-content {
  width: min(1280px, 100%);
  margin: auto;
  border: 1px solid #dceae7;
  border-radius: 0 18px 18px 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(9, 83, 81, .05);
}
.termeh-room .tab-pane,
.termeh-room .background-whitesmoke { background: #fff !important; }
.termeh-room input,
.termeh-room select,
.termeh-room .dropdown-menu { direction: rtl; text-align: right; }
.termeh-room .recordings-list th,
.termeh-room .recordings-list td { text-align: right; }
.termeh-room .recordings-list { border-color: #e6eeec !important; }
.termeh-room .recordings-list thead { background: #f7faf9; }
.termeh-room .table-responsive { direction: rtl; }

.termeh-join-card {
  overflow: hidden;
  border-radius: 22px !important;
  background: #fff;
  box-shadow: 0 20px 55px rgba(16, 78, 79, .10) !important;
  color: var(--termeh-ink);
  text-align: right;
}
body:has(.termeh-join-card) footer { display: none; }
.termeh-join-page { min-height: calc(100vh - 24px); }
.termeh-join-card .card-body { padding: clamp(24px, 4vw, 42px); }
.termeh-join-card .card-body > .row { align-items: center; }
.termeh-join-card .card-body h1 {
  color: #103f41;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.5;
}
.termeh-join-card .card-body h5 { color: var(--termeh-ink); }
.termeh-join-card .card-footer {
  padding: 24px clamp(24px, 4vw, 42px) 28px !important;
  border-top: 1px solid #e5eeec !important;
  background: #fff !important;
  text-align: right;
}
.termeh-join-card .card-footer label { display: block; text-align: right; }
.termeh-join-card .card-footer .form-control {
  min-height: 48px;
  border-color: #d7e4e2;
  border-radius: 12px;
  background: #fbfdfc;
}
.termeh-join-card .card-footer .btn-brand {
  min-height: 48px;
  border-radius: 12px;
  padding-inline: 22px;
  font-weight: 700;
}
.termeh-join-card .card-footer > .row:last-child { text-align: center; }

@media (max-width: 575px) {
  .termeh-join-card { margin-inline: 12px; width: auto; }
  .termeh-join-card .card-body,
  .termeh-join-card .card-footer { padding: 22px 20px !important; }
}

@media (max-width: 760px) {
  .termeh-room { padding: 18px 14px 40px; }
  .termeh-room-hero { align-items: stretch; flex-direction: column; padding: 24px 20px; }
  .termeh-room-actions { width: 100%; }
  .termeh-room-actions > * { flex: 1 1 160px; }
  .termeh-room-actions .btn { width: 100%; }
  .termeh-room .nav-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 0 !important; }
  .termeh-room .nav-tabs .nav-link { white-space: nowrap; }
}

@media (max-width: 760px) {
  .termeh-auth { padding: 14px; }
  .termeh-auth-card {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
    min-height: 0;
    border-radius: 22px;
  }
  .termeh-brand-pane { padding: 28px 20px; }
  .termeh-brand-content {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: right;
  }
  .termeh-brand-logo {
    width: 82px;
    margin: 0;
    border-radius: 14px;
  }
  .termeh-brand-content h1 { font-size: 1.24rem; }
  .termeh-form-pane { padding: 30px 25px 34px; }
  .termeh-form-inner h2 { margin-bottom: 20px; }
}
