* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.74);
  --panel-bg: rgba(10, 10, 18, 0.88);
  --modal-bg: rgba(14, 14, 24, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.08);
  --btn-light: #f3f3f3;
  --btn-text: #101014;
  --purple: #35106e;
  --purple-hover: #45208a;
  --error-bg: rgba(130, 12, 28, 0.55);
  --error-border: rgba(255, 85, 110, 0.28);
  --success-bg: rgba(18, 109, 52, 0.40);
  --success-border: rgba(104, 225, 144, 0.25);
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: #000;
  color: var(--white);
  overflow-x: hidden;
}

/* VIDEO */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.30) 0%,
      rgba(0, 0, 0, 0.36) 48%,
      rgba(0, 0, 0, 0.70) 68%,
      rgba(0, 0, 0, 0.88) 100%
    );
  z-index: -2;
}

/* PAGE LAYOUT */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.left-side {
  min-height: 100vh;
}

.right-side {
  min-height: 100vh;
  padding: 55px 45px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* TOP BAR */
.top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  min-height: 65px;
  margin-left: -100px;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 55px;
  max-width: 280px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.selectors {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.top-select {
  min-width: 150px;
  height: 46px;
  padding: 0 15px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
  font-size: 16px;
  outline: none;
  cursor: pointer;
  appearance: auto;
}

.top-select option,
.modal-card select option {
  color: #111;
  background: #fff;
}

/* LOGIN PANEL */
.login-panel {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: 16px;
  margin-top: auto;
  margin-bottom: auto;
}

.login-panel h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.login-panel p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--soft-white);
  max-width: 470px;
  margin-bottom: 34px;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 22px;
  padding: 15px 15px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.22s ease;
  margin-bottom: 20px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  background: var(--btn-light);
  color: var(--btn-text);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1.5px solid rgba(255,59,122,0.65);
}

.btn-google:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,59,122,0.95);
}

.btn-google img {
  width: 24px;
  height: 20px;
}

.login-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 2px;
  flex-wrap: wrap;
}

.text-link {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s ease;
}

.text-link:hover {
  color: #fff;
  text-decoration: underline;
}

.center-link {
  display: block;
  margin: 6px auto 0;
  text-align: center;
}

/* MESSAGE BOX */
.message-box {
  display: none;
  margin-top: 18px;
  padding: 18px 18px;
  border-radius: 18px;
  font-size: 17px;
  line-height: 1.45;
}

.message-box.show {
  display: block;
}

.message-box.error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: #ffd6dc;
}

.message-box.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #d3ffe0;
}

/* FOOTER LINKS */
.bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: rgba(255, 255, 255, 0.24);
  font-size: 14px;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  z-index: 99;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 22px;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  padding: 36px 34px 28px;
  border-radius: 30px;
  background: var(--modal-bg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}

.modal-card h3 {
  font-size: 30px;
  margin-bottom: 26px;
}

.modal-card input,
.modal-card select {
  width: 100%;
  padding: 18px 18px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--white);
  font-size: 17px;
  outline: none;
}

.modal-card input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.hidden {
  display: none !important;
}

.terms-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  text-align: left;
}

.terms-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0 0;
  flex-shrink: 0;
  accent-color: #e91e8c;
  cursor: pointer;
}

.terms-checkbox-label a {
  color: #e91e8c;
  text-decoration: underline;
}

/* LARGE TABLET */
@media (max-width: 1200px) {
  .brand-logo-wrap {
    margin-left: -12px;
  }

  .brand-logo {
    height: 50px;
    max-width: 250px;
  }

  .top-select {
    min-width: 155px;
  }

  .login-panel h1 {
    font-size: clamp(40px, 5vw, 58px);
  }
}

/* TABLET / SMALLER DESKTOP */
@media (max-width: 1050px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .left-side {
    min-height: 28vh;
  }

  .right-side {
    padding: 24px 24px 26px;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .brand-logo-wrap {
    margin-left: 0;
  }

  .brand-logo {
    height: 48px;
    max-width: 220px;
  }

  .selectors {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .login-panel {
    max-width: 100%;
    margin: 40px 0 0 0;
  }

  .login-panel h1 {
    font-size: clamp(38px, 6vw, 52px);
  }

  .login-panel p {
    font-size: 16px;
  }

  .bottom-links {
    justify-content: center;
    margin-top: 36px;
  }
}

/* MOBILE */
@media (max-width: 620px) {
  .brand-logo {
    height: 42px;
    max-width: 200px;
  }

  .selectors {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .top-select {
    width: 100%;
    min-width: 100%;
  }

  .login-panel h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .login-panel p {
    font-size: 16px;
  }

  .btn {
    font-size: 18px;
    padding: 20px 22px;
  }

  .modal {
    padding: 22px 52px !important;
  }

  .modal-card {
    padding: 28px 20px 24px;
    border-radius: 24px;
  }

  .modal-card h3 {
    font-size: 26px;
  }

  .login-links {
    gap: 14px;
  }

  .text-link {
    font-size: 17px;
  }
}

.user-avatar,
.me-avatar,
.row-avatar,
.mini-dm-avatar{
  overflow:hidden;
}

.user-avatar img,
.me-avatar img,
.row-avatar img,
.mini-dm-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:50%;
}
/* =========================================
   MOBILNÍ ROZŠÍŘENÍ 320 – 611 px  (jediný blok)
   ========================================= */

@media (max-width: 611px) {

  html, body {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  /* celá stránka – jeden sloupec */
  .login-page {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  .left-side {
    display: none !important;
  }

  /* pravá strana = celý viewport, 50 px ze všech stran */
  .right-side {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 100vh !important;
    padding: 50px !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  /* horní lišta s logem a selecty */
  .top-bar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .brand-logo-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: auto !important;
  }

  .brand-logo {
    height: 46px !important;
    max-width: 200px !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .selectors {
    width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .top-select {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
  }

  /* login panel */
  .login-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .login-panel h1 {
    font-size: 28px !important;
    margin-bottom: 8px !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }

  .login-panel p {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 14px !important;
    text-align: center !important;
  }

  /* tlačítka */
  .btn {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px 16px !important;
    font-size: 15px !important;
    border-radius: 16px !important;
    margin-bottom: 10px !important;
  }

  .login-links {
    justify-content: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    margin-top: 4px !important;
  }

  .text-link {
    font-size: 14px !important;
  }

  /* spodní odkazy – posunuté dolů, 50 px od spodku zaručeno padding */
  .bottom-links {
    margin-top: auto !important;
    justify-content: center !important;
    font-size: 12px !important;
    gap: 12px !important;
    padding-top: 16px !important;
  }

  /* modály */
  .modal {
    padding: 14px !important;
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px 16px 18px !important;
    border-radius: 22px !important;
  }

  .modal-card h3 {
    font-size: 22px !important;
    margin-bottom: 16px !important;
  }

  .modal-card input,
  .modal-card select {
    padding: 14px !important;
    font-size: 15px !important;
    border-radius: 14px !important;
    margin-bottom: 10px !important;
  }
}
.btn-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1.5px solid rgba(255,59,122,0.65);
}
.btn-apple:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,59,122,0.95);
}