/* ===== Invento Auth Pages — Premium Split-Screen ===== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

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

.auth-body {
  font-family: 'Manrope', sans-serif;
  background: #ECECEC;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
}

/* ===== Main Container ===== */
.auth-container {
  width: 100%;
  max-width: 1320px;
  min-height: 820px;
  background: #F7F3E8;
  border-radius: 35px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
  display: flex;
  overflow: hidden;
  position: relative;
  animation: authFadeIn 0.6s ease-out;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== LEFT — Form Section ===== */
.auth-left {
  flex: 0 0 45%;
  padding: 55px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #F7F3E8;
  position: relative;
  z-index: 2;
}

/* Logo Button */
.auth-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  transition: transform 0.2s;
}
.auth-logo:hover { transform: translateY(-1px); }
.auth-logo img { height: 38px; width: auto; }

/* Form Content */
.auth-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  padding: 30px 0;
}

.auth-heading {
  font-size: 32px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 15px;
  color: #8A8A8A;
  margin-bottom: 32px;
  font-weight: 400;
}

/* Inputs */
.auth-field {
  margin-bottom: 18px;
  position: relative;
}

.auth-input {
  width: 100%;
  height: 55px;
  padding: 0 22px;
  border: 2px solid #C8C3B5;
  border-radius: 30px;
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  color: #1A1A1A;
  background: #FFFDF8;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.auth-input::placeholder {
  color: #BBB8B0;
  font-weight: 400;
}
.auth-input:focus {
  border-color: #F5C518;
  box-shadow: 0 0 0 4px rgba(245,197,24,0.1);
}

/* Password field */
.auth-field-password { position: relative; }
.auth-field-password .auth-input { padding-right: 52px; }
.auth-toggle-pass {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #BBB8B0;
  font-size: 18px;
  user-select: none;
  transition: color 0.2s;
}
.auth-toggle-pass:hover { color: #8A8A8A; }

/* Error message */
.auth-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Primary Button */
.auth-btn {
  width: 100%;
  height: 55px;
  background: #F5C518;
  color: #1A1A1A;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  letter-spacing: -0.2px;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  margin-top: 6px;
}
.auth-btn:hover {
  background: #E0B016;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(245,197,24,0.3);
}
.auth-btn:active { transform: translateY(0); }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E0DCD0;
}
.auth-divider span {
  font-size: 13px;
  color: #BBB8B0;
  font-weight: 500;
}

/* Social Buttons */
.auth-social {
  display: flex;
  gap: 14px;
}
.auth-social-btn {
  flex: 1;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFDF8;
  border: 2px solid #E8E4DA;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.auth-social-btn:hover {
  border-color: #D5D0C5;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.auth-social-btn svg { width: 20px; height: 20px; }

/* Footer */
.auth-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}
.auth-footer a,
.auth-footer span {
  font-size: 14px;
  color: #8A8A8A;
  text-decoration: none;
  font-weight: 500;
}
.auth-footer a:hover { color: #1A1A1A; }

/* CSRF hidden */
.auth-form-wrap input[name="csrfmiddlewaretoken"] { display: none; }

/* Demo credentials panel */
.auth-demo-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 18px;
}
.auth-demo-toggle input { accent-color: #F5C518; width: 16px; height: 16px; cursor: pointer; }
.auth-demo-toggle label { font-size: 14px; color: #5A5A5A; cursor: pointer; font-weight: 600; }

.auth-demo-panel {
  display: none;
  margin-top: 12px;
  background: #FFFDF8;
  border: 1px solid #C8C3B5;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.auth-demo-panel.show { display: block; }
.auth-demo-panel-title { font-size: 12px; color: #BBB8B0; margin-bottom: 10px; font-weight: 500; }

.auth-demo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-demo-item:hover { background: #F5F1E6; }
.auth-demo-item strong { font-size: 13px; color: #1A1A1A; font-weight: 600; }
.auth-demo-item .demo-role { font-size: 11px; color: #8A8A8A; font-weight: 400; }
.auth-demo-item .demo-pass { font-size: 11px; color: #BBB8B0; }

/* ===== RIGHT — Image Section ===== */
.auth-right {
  flex: 0 0 55%;
  position: relative;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-image-wrap {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background-color: #2A2520;
}

.auth-image-layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.auth-image-layer.active { opacity: 1; }

.auth-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,37,32,0.15) 0%, rgba(42,37,32,0.35) 100%);
}

/* Close button */
.auth-close {
  position: absolute;
  top: 38px;
  right: 38px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  cursor: pointer;
  z-index: 20;
  font-size: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.auth-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

/* Floating Cards */
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  padding: 16px 20px;
  z-index: 15;
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Top: Meeting schedule card */
.float-schedule {
  top: 40px;
  left: 40px;
  animation-delay: 0s;
}
.float-schedule .sched-label {
  font-size: 11px;
  color: #8A8A8A;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.float-schedule .sched-title {
  font-size: 15px;
  color: #1A1A1A;
  font-weight: 700;
  margin-bottom: 10px;
}
.float-schedule .sched-badge {
  display: inline-block;
  background: #1A1A1A;
  color: #F5C518;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Bottom-left: White meeting card */
.float-meeting {
  bottom: 40px;
  left: 40px;
  animation-delay: 1.5s;
  max-width: 250px;
}
.float-meeting .meet-title {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 4px;
}
.float-meeting .meet-sub {
  font-size: 12px;
  color: #8A8A8A;
  margin-bottom: 12px;
}

/* Avatar group */
.float-avatars {
  display: flex;
  align-items: center;
}
.float-avatars .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid #F7F3E8;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #FFF;
}
.float-avatars .av:first-child { margin-left: 0; }
.float-avatars .av-more {
  background: #F5C518;
  color: #1A1A1A;
  font-size: 11px;
}

/* Bottom-center: Calendar strip */
.float-calendar {
  bottom: 40px;
  right: 40px;
  animation-delay: 3s;
}
.float-calendar .cal-row {
  display: flex;
  gap: 8px;
}
.float-calendar .cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  min-width: 42px;
  transition: background 0.2s;
}
.float-calendar .cal-day:hover { background: #F5F1E6; }
.float-calendar .cal-day.active {
  background: #F5C518;
}
.float-calendar .cal-day.active .cal-d,
.float-calendar .cal-day.active .cal-n {
  color: #1A1A1A;
}
.float-calendar .cal-d {
  font-size: 10px;
  font-weight: 600;
  color: #8A8A8A;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.float-calendar .cal-n {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .auth-container { max-width: 100%; min-height: auto; flex-direction: column; }
  .auth-left { flex: 1; padding: 40px 30px; }
  .auth-right { flex: 0 0 280px; }
  .float-schedule { top: 20px; left: 20px; }
  .float-meeting { bottom: 20px; left: 20px; max-width: 200px; }
  .float-calendar { bottom: 20px; right: 20px; }
  .auth-close { top: 30px; right: 30px; }
}

@media (max-width: 640px) {
  .auth-body { padding: 0; }
  .auth-container { border-radius: 0; min-height: 100vh; }
  .auth-left { padding: 30px 24px; }
  .auth-right { display: none; }
  .auth-heading { font-size: 26px; }
  .auth-social { flex-direction: column; }
  .auth-footer { flex-direction: column; gap: 10px; }
  .float-schedule, .float-meeting, .float-calendar { display: none; }
}
