* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #e1e1e2 0%, #efe5ec 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ─────────────────────────────────────────
   WRAPPER — side by side, fills 100vh
───────────────────────────────────────── */
.wrapper {
  display: flex;
  gap: 32px;
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  height: calc(100vh - 32px);
  max-height: 920px;
}

/* ─────────────────────────────────────────
   IMAGE CONTAINER — fills left side fully
───────────────────────────────────────── */
.admin-image-container {
  flex: 1 1 55%;
  border-radius: 20px;
  overflow: hidden;
 
  backdrop-filter: blur(10px);
 
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
}

.admin-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
 
  border-radius: 0;
  display: block;
  transition: transform 0.4s ease;
}

.admin-image:hover {
  transform: scale(1.03);
}

.image-placeholder,
.loading-image {
  color: #fff;
  font-style: italic;
  padding: 24px;
  font-size: 1.1em;
  text-align: center;
}

/* ─────────────────────────────────────────
   FORM CONTAINER — right side
───────────────────────────────────────── */
.container {
  flex: 0 0 420px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: #c7d0f5 transparent;
}

.container::-webkit-scrollbar { width: 4px; }
.container::-webkit-scrollbar-track { background: transparent; }
.container::-webkit-scrollbar-thumb { background: #c7d0f5; border-radius: 4px; }

.container:hover { transform: translateY(-4px); }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1 {
  text-align: center;
  margin-bottom: 37px;
  font-size: clamp(1.5em, 2.2vw, 2.1em);
  font-weight: 700;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

#meetingTitle {
  text-align: center;
  color: #666;
  margin-bottom: 18px;
  font-size: clamp(0.82em, 1.1vw, 0.98em);
  padding: 8px 12px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  border-left: 4px solid #667eea;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   FORM GROUPS
───────────────────────────────────────── */
.form-group {
  margin-bottom: 14px;
  position: relative;
  flex-shrink: 0;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 42px 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 14.5px;
  transition: all 0.3s ease;
  background: #f8f9fa;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.form-group select { cursor: pointer; }
.form-group select option { background: #fff; color: #333; }
.form-group input::placeholder { color: #9ca3af; }



/* ─────────────────────────────────────────
   SUBMIT BUTTON
───────────────────────────────────────── */
.submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102,126,234,0.4); }
.submit-btn:hover::before { left: 100%; }
.submit-btn:active { transform: translateY(0); }

.submit-btn.loading { opacity: 0.7; cursor: not-allowed; pointer-events: none; }
.submit-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* ─────────────────────────────────────────
   MESSAGES & DIALOG
───────────────────────────────────────── */
#messageContainer { margin: 10px 0; flex-shrink: 0; }

.message {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  text-align: center;
  font-size: 13.5px;
  animation: messageSlideIn 0.3s ease-out;
}
.message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.message.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.message.info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

@keyframes messageSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#dialog {
  display: none;
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(16,185,129,0.3);
  animation: slideIn 0.5s ease;
  flex-shrink: 0;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-icon { font-size: 20px; margin-right: 6px; }

/* ─────────────────────────────────────────
   LOGIN / BACK LINKS
───────────────────────────────────────── */
.login-link-section {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}
.login-text { color: #666; margin: 0; font-size: 23px; }
.login-link { color: #667eea; text-decoration: none; font-weight: 600; }
.login-link:hover { color: #764ba2; text-decoration: underline; }

.back-to-register { text-align: center; margin-top: 10px; flex-shrink: 0; }
.back-to-register a { color: #6c757d; text-decoration: none; font-size: 13px; }
.back-to-register a:hover { color: #495057; text-decoration: underline; }

/* ─────────────────────────────────────────
   FORM SECTION TOGGLE
───────────────────────────────────────── */
.form-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: opacity 0.3s ease;
}
.form-section.active { opacity: 1; }
.form-section:not(.active) { display: none; opacity: 0; }

/* ═══════════════════════════════════════════
   BREAKPOINTS — DESKTOP
═══════════════════════════════════════════ */

/* Large Desktop 1600px+ */
@media (min-width: 1600px) {
  .wrapper { max-width: 1500px; gap: 48px; }
  .container { flex: 0 0 480px; }
}

/* Medium Desktop 1200–1599px */
@media (max-width: 1599px) and (min-width: 1200px) {
  .wrapper { max-width: 1200px; gap: 32px; }
  .container { flex: 0 0 400px; }
}

/* Small Laptop 1024–1199px */
@media (max-width: 1199px) and (min-width: 1025px) {
  .wrapper { gap: 22px; }
  .container { flex: 0 0 360px; padding: 22px 22px; }
  h1 { font-size: 1.7em; }
  #meetingTitle { margin-bottom: 14px; }
  .form-group { margin-bottom: 11px; }
  .form-group input, .form-group select { padding: 10px 36px 10px 14px; font-size: 14px; }
  .submit-btn { padding: 11px; font-size: 14px; }
}

/* Short laptop height (e.g. 1366x768) */
@media (max-height: 700px) and (min-width: 769px) {
  body { padding: 10px; }
  .wrapper { height: calc(100vh - 20px); gap: 18px; }
  .container { padding: 15px 20px; }
  h1 { font-size: 1.45em; margin-bottom: 4px; }
  #meetingTitle { margin-bottom: 10px; padding: 6px 10px; font-size: 0.83em; }
  .form-group { margin-bottom: 9px; }
  .form-group input, .form-group select { padding: 9px 34px 9px 13px; font-size: 13.5px; border-radius: 10px; }
  .submit-btn { padding: 10px; font-size: 13.5px; }
  .login-link-section { margin-top: 8px; padding-top: 8px; }
}

/* ═══════════════════════════════════════════
   BREAKPOINTS — TABLET & MOBILE
   Image uses exact aspect ratio of 1900x957
   padding-bottom: (957/1900)*100 = 50.37%
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  html, body { overflow: auto; height: auto; }

  body {
    height: auto;
    min-height: 100vh;
    align-items: flex-start;
    padding: 14px;
  }

  .wrapper {
    flex-direction: column;
    height: auto;
    max-height: none;
    gap: 14px;
  }

.admin-image-container {
    flex: none;
    width: 100%;
    height: 0;
    padding-bottom: 50.37%;  /* 160% ને બદલે આ વાપરો */
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: none;
  }

  .admin-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;  /* cover ને બદલે contain */
    object-position: center;
    transition: none;
  }

  .image-placeholder,
  .loading-image {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
  }

  .container {
    flex: none;
    width: 100%;
    max-width: 100%;
    overflow-y: visible;
    padding: 24px 20px;
    transform: none !important;
  }

  .container:hover { transform: none !important; }
}

/* Tablet 768px */
@media (max-width: 768px) {
  .container { padding: 22px 18px; }
  h1 { font-size: 1.75em; }
}

/* Large Phone 480–640px */
@media (max-width: 640px) {
  body { padding: 10px; }
  .wrapper { gap: 10px; }
  .admin-image-container { border-radius: 12px; }
  .container { padding: 20px 15px; border-radius: 16px; }
  h1 { font-size: 1.5em; }
  #meetingTitle { font-size: 0.9em; }
  .form-group { margin-bottom: 12px; }
  .form-group input, .form-group select { font-size: 14px; padding: 11px 36px 11px 13px; }
  .submit-btn { padding: 12px; font-size: 14px; }
}

/* Small Phone 480px */
@media (max-width: 480px) {
  body { padding: 8px; }
  .wrapper { gap: 10px; }
  .container { padding: 18px 13px; border-radius: 14px; }
  h1 { font-size: 1.38em; }
  #meetingTitle { font-size: 0.85em; margin-bottom: 13px; }
  .form-group { margin-bottom: 11px; }
  .form-group input, .form-group select { padding: 10px 34px 10px 13px; font-size: 13.5px; border-radius: 10px; }
  .submit-btn { padding: 12px; font-size: 14px; border-radius: 10px; }
  .login-text, .back-to-register a { font-size: 12px; }
}

/* Extra Small 360px */
@media (max-width: 360px) {
  body { padding: 6px; }
  .container { padding: 15px 11px; border-radius: 12px; }
  h1 { font-size: 1.25em; }
  .form-group input, .form-group select { font-size: 13px; }
  .submit-btn { font-size: 13px; padding: 10px; }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
  .form-group input, .form-group select, .submit-btn { min-height: 44px; }
  .container:hover, .admin-image:hover, .submit-btn:hover { transform: none !important; box-shadow: none; }
}

/* Print */
@media print {
  body { background: white; overflow: auto; height: auto; }
  .wrapper { flex-direction: column; height: auto; }
  .admin-image-container { display: none; }
  .container { box-shadow: none; overflow: visible; }
  .submit-btn, .login-link-section, .back-to-register { display: none; }
}