/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ========================================
   BREVV BRAND COLORS & TOKENS
   ======================================== */
:root {
  /* Brevv Blue Palette */
  --brevv-blue-50: #e6f3ff;
  --brevv-blue-100: #cce7ff;
  --brevv-blue-200: #99cfff;
  --brevv-blue-300: #66b7ff;
  --brevv-blue-400: #33a3ff;
  --brevv-blue-500: #008cff;
  --brevv-blue-600: #0077dd;
  --brevv-blue-700: #0062b8;
  --brevv-blue-800: #004d99;
  --brevv-blue-900: #003366;

  /* Gradient colors */
  --brevv-gradient-light: #3399ff;
  --brevv-gradient-dark: #0066cc;

  /* UI Colors */
  --brevv-bg: #f8fbff;
  --brevv-border: #c8ddf5;
  --brevv-muted: #6b8bb2;
  --brevv-text: #0f172a;
  --brevv-text-secondary: #64748b;
  --brevv-photo-bg: #e0efff;
  --brevv-shadow: rgba(0, 100, 200, 0.10);
  
  /* 8px Spacing System */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
}

/* ========================================
   LAYOUT CONTAINER
   ======================================== */
.brevv-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ========================================
   LEFT PANEL - FEATURE CAROUSEL
   ======================================== */
.feature-panel {
  position: relative;
  width: 50%;
  min-height: 100vh;
  background: linear-gradient(145deg, #f5f9ff 0%, #e8f2ff 30%, rgba(214, 233, 255, 0.2) 60%, #f5f9ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.pattern-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(0, 140, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 100, 200, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.brevv-logo {
  width: 110px;
  height: 30px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.brevv-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px 0;
  position: relative;
  z-index: 1;
  perspective: 1200px;
}

.slide-container {
  position: relative;
  width: 380px;
  height: 420px;
  transform-style: preserve-3d;
}

/* Slide wrapper for animations */
.slide-wrapper {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* Animation states */
.slide-wrapper.entering {
  animation: slideEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide-wrapper.exiting {
  animation: slideExit 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideEnter {
  from {
    opacity: 0;
    transform: rotateY(180deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}

@keyframes slideExit {
  from {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
  to {
    opacity: 0;
    transform: rotateY(-180deg) scale(0.95);
  }
}

/* Main gradient card */
.gradient-card {
  position: absolute;
  width: 238px;
  height: 391px;
  left: 70px;
  top: 0;
  background: linear-gradient(160deg, var(--brevv-gradient-light) 0%, var(--brevv-gradient-dark) 100%);
  border-radius: 17px;
  transform: translateZ(0px);
  animation: cardFadeIn 0.4s ease-out forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateZ(0px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateZ(0px) scale(1);
  }
}

/* Slide title */
.slide-title {
  position: absolute;
  left: 70px;
  width: 238px;
  bottom: 58px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-align: center;
  white-space: pre-line;
  line-height: 1.25;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 50, 102, 0.35);
  transform: translateZ(20px);
  animation: titleFadeIn 0.4s 0.1s ease-out backwards;
}

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

/* Center photo */
.center-photo {
  position: absolute;
  width: 148px;
  height: 220px;
  left: 114px;
  top: 50px;
  border-radius: 14px;
  overflow: hidden;
  z-index: 1;
  transform: translateZ(30px);
  animation: photoFadeIn 0.45s 0.08s ease-out backwards;
}

@keyframes photoFadeIn {
  from {
    opacity: 0;
    transform: translateZ(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateZ(30px) scale(1);
  }
}

.center-photo-bg {
  position: absolute;
  inset: 0;
  background: var(--brevv-photo-bg);
  border-radius: 14px;
}

.center-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* Info card (left side) */
.info-card {
  position: absolute;
  width: 186px;
  left: -6px;
  top: 72px;
  background: rgba(240, 247, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0px 6px 24px var(--brevv-shadow), 0px 2px 6px rgba(0, 0, 0, 0.03);
  border: 0.5px solid var(--brevv-border);
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  transform: translateZ(50px);
  animation: infoCardSlideIn 0.5s 0.15s ease-out backwards;
}

@keyframes infoCardSlideIn {
  from {
    opacity: 0;
    transform: translateZ(50px) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateZ(50px) translateX(0);
  }
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 140, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text {
  flex: 1;
  min-width: 0;
}

.info-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 8.5px;
  color: #1e293b;
  white-space: nowrap;
  margin-bottom: 1px;
}

.info-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 6.8px;
  color: #64748b;
  line-height: 1.3;
  margin-bottom: 1px;
}

.info-meta {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 6px;
  color: var(--brevv-muted);
  white-space: nowrap;
}

/* Top-right image card */
.image-card {
  position: absolute;
  width: 142px;
  height: 152px;
  left: 236px;
  top: 4px;
  background: #f8fbff;
  border: 0.5px solid var(--brevv-border);
  border-radius: 11px;
  box-shadow: 0px 10px 28px var(--brevv-shadow), 0px 3.5px 14px rgba(0, 0, 0, 0.06);
  z-index: 3;
  transform: translateZ(40px);
  animation: imageCardSlideIn 0.5s 0.12s ease-out backwards;
}

@keyframes imageCardSlideIn {
  from {
    opacity: 0;
    transform: translateZ(40px) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateZ(40px) translateX(0);
  }
}

.image-card-photo {
  position: absolute;
  width: 142px;
  height: 82px;
  left: 0;
  top: 0;
  overflow: hidden;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.image-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 50, 102, 0.4));
}

.play-button {
  position: absolute;
  width: 28px;
  height: 28px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
}

.image-card-content {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 89px;
}

.image-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 8.2px;
  color: #1e293b;
}

.image-card-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 7px;
  color: #64748b;
  margin-top: 2px;
}

.image-card-button {
  width: 100%;
  height: 20px;
  margin-top: 8px;
  background: linear-gradient(173deg, #4aa8ff 0%, #008cff 50%, #0077dd 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 1px 4px rgba(0, 140, 255, 0.25);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 7.5px;
  color: #fff;
}

/* Top-right tablet card */
.tablet-card {
  position: absolute;
  width: 148px;
  left: 234px;
  top: 4px;
  background: #f8fbff;
  border: 1px solid var(--brevv-border);
  border-radius: 11px;
  box-shadow: 0px 10px 36px var(--brevv-shadow), 0px 4px 12px rgba(0, 0, 0, 0.04);
  padding: 10px 12px 14px;
  z-index: 3;
  transform: translateZ(40px);
  animation: tabletCardSlideIn 0.5s 0.12s ease-out backwards;
}

@keyframes tabletCardSlideIn {
  from {
    opacity: 0;
    transform: translateZ(40px) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateZ(40px) translateX(0);
  }
}

.tablet-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
}

.tablet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.tablet-dot.red { background: #ef4444; }
.tablet-dot.yellow { background: #f59e0b; }
.tablet-dot.green { background: #22c55e; }

.tablet-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 6.5px;
  color: var(--brevv-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.tablet-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  color: #1e293b;
  margin-bottom: 8px;
}

.tablet-divider {
  height: 1px;
  background: var(--brevv-border);
  margin-bottom: 6px;
}

.tablet-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tablet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.tablet-row-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 7px;
  color: #64748b;
}

.tablet-row-value {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 7.5px;
}

/* Detail card (bottom-left) */
.detail-card {
  position: absolute;
  width: 152px;
  left: -6px;
  top: 200px;
  background: #f8fbff;
  border: 0.5px solid var(--brevv-border);
  border-radius: 11px;
  box-shadow: 0px 10px 28px var(--brevv-shadow), 0px 3.5px 14px rgba(0, 0, 0, 0.06);
  padding: 14px 12px 12px;
  z-index: 3;
  transform: translateZ(60px);
  animation: detailCardSlideIn 0.5s 0.2s ease-out backwards;
}

@keyframes detailCardSlideIn {
  from {
    opacity: 0;
    transform: translateZ(60px) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateZ(60px) translateY(0);
  }
}

.detail-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 9px;
  color: #1e293b;
}

.detail-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 7.2px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.35;
}

.detail-meta {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 6.5px;
  color: var(--brevv-muted);
  margin-top: 4px;
}

.detail-button {
  width: 100%;
  height: 22px;
  margin-top: 8px;
  background: linear-gradient(173deg, #4aa8ff 0%, #008cff 50%, #0077dd 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 1px 4px rgba(0, 140, 255, 0.25);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 7.5px;
  color: #fff;
}

/* Floating chip (right) */
.floating-chip {
  position: absolute;
  right: -4px;
  top: 186px;
  background: rgba(240, 247, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid var(--brevv-border);
  border-radius: 50px;
  box-shadow: 0px 4px 16px var(--brevv-shadow);
  padding: 5px 12px 5px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 4;
  transform: translateZ(70px);
  animation: chipFadeIn 0.4s 0.28s ease-out backwards;
}

@keyframes chipFadeIn {
  from {
    opacity: 0;
    transform: translateZ(70px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateZ(70px) scale(1);
  }
}

.chip-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 140, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 8px;
  color: #1e293b;
}

/* Description text */
.slide-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
  max-width: 293px;
  margin-top: 24px;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  animation: descriptionFadeIn 0.3s ease-out;
}

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

/* Navigation dots */
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brevv-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.dot:hover {
  background: #a0bce0;
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--brevv-blue-500);
}

/* ========================================
   RIGHT PANEL - LOGIN FORM
   ======================================== */
.login-panel {
  position: relative;
  width: 50%;
  min-height: 100vh;
  background: linear-gradient(168deg, #f8fbff 6%, #f0f7ff 37%, #e0efff 68%, #d0e5ff 94%);
  display: flex;
  flex-direction: column;
}

.form-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
}

.form-wrapper {
  width: 100%;
  max-width: 380px;
}

/* Form header */
.form-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.form-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 32.2px;
  color: #0f172a;
  letter-spacing: -0.56px;
}

.form-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--brevv-muted);
}

/* Form */
.brevv-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Input group */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.input-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 19.5px;
  color: #64748b;
  letter-spacing: 0.13px;
  white-space: nowrap;
}

.input-label .required {
  color: #ef4444;
  margin-left: 3px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  height: 46px;
}

.brevv-input {
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  color: #1e293b;
  background: rgba(240, 247, 255, 0.5);
  border-radius: 12px;
  border: 0.8px solid var(--brevv-border);
  padding: 12px 16px;
  outline: none;
  transition: all 0.2s ease;
}

.brevv-input:focus {
  border-color: var(--brevv-blue-500);
  background: rgba(240, 247, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.1);
}

.brevv-input::placeholder {
  color: #94a3b8;
}

.brevv-input.has-icon {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s;
}

.password-toggle:hover {
  opacity: 0.7;
}

.input-hint {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--brevv-muted);
  margin-top: 2px;
}

/* Submit button */
.submit-button {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(173deg, #4aa8ff 0%, #008cff 50%, #0077dd 100%);
  box-shadow: 0px 2px 8px rgba(0, 140, 255, 0.25);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0px 4px 12px rgba(0, 140, 255, 0.35);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0px 2px 8px rgba(0, 140, 255, 0.25);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  gap: 12px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--brevv-border);
  opacity: 0.6;
}

.divider-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--brevv-muted);
}

/* Google button */
.google-button {
  width: 100%;
  height: 48px;
  background: rgba(240, 247, 255, 0.6);
  border-radius: 12px;
  border: 0.8px solid var(--brevv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-button:hover {
  background: rgba(240, 247, 255, 0.9);
  border-color: #b0c8e8;
  transform: translateY(-1px);
}

.google-button:active {
  transform: translateY(0);
}

.google-button-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
}

/* Sign in link */
.signin-text {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--brevv-muted);
  margin-top: 28px;
}

.signin-link {
  font-weight: 600;
  color: var(--brevv-blue-500);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  transition: color 0.2s;
}

.signin-link:hover {
  color: var(--brevv-blue-600);
}

/* Footer */
.panel-footer {
  width: 100%;
  text-align: center;
  padding: 16px 32px 24px;
  border-top: 1px solid rgba(200, 221, 245, 0.4);
}

.footer-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #8ba8c8;
  line-height: 1.5;
}

.footer-separator {
  color: var(--brevv-border);
}

.footer-brand {
  color: var(--brevv-muted);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .brevv-container {
    flex-direction: column;
  }

  .feature-panel {
    display: none;
  }

  .login-panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .form-container {
    padding: 0 24px;
  }

  .form-title {
    font-size: 24px;
    line-height: 28px;
  }

  .form-subtitle {
    font-size: 13px;
  }
}
