@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap");

:root {
  --primary-gradient: linear-gradient(135deg, #4c0080 0%, #6a0dad 100%);
  --button-gradient: linear-gradient(90deg, #4c0080 0%, #6a0dad 100%);
  --bg-white: #ffffff;
  --input-bg: #eeeef0;
  --text-main: #1a1c1d;
  --text-muted: #4d4353;
  --text-placeholder: #6b7280;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --border-radius-xl: 24px;
  --border-radius-lg: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-white);
}

.main-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 1024px;
}

/* LEFT SIDE: Branding Panel */
.branding-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 48px 0px;
  width: 50%;
  min-width: 640px;
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.blur-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
}

.blur-circle-1 {
  background: #ffffff;
  left: -100px;
  top: -100px;
}

.blur-circle-2 {
  background: #dfb7ff;
  right: -100px;
  bottom: -100px;
}

.branding-content {
  z-index: 2;
  width: 100%;
  max-width: 544px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 57px;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-text {
  font-size: 60px;
  font-weight: 900;
  line-height: 60px;
  letter-spacing: -3px;
  color: #ffffff;
  margin-bottom: 32px;
}

.sub-greeting {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* Bento Grid Styles */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  padding-top: 48px;
}

.product-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
}

.product-image {
  width: 100%;
  height: 200px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
}

.card-iphone {
  transform: rotate(-3deg);
}
.card-macbook {
  transform: rotate(3deg);
  margin-top: 40px;
}
.card-watch {
  transform: rotate(2deg);
}
.card-airpods {
  transform: rotate(-2deg);
  margin-bottom: 40px;
}

/* RIGHT SIDE: Signup Form */
.signup-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px;
  width: 50%;
  min-width: 640px;
  background: var(--bg-white);
}

.form-container {
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-header h1 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.75px;
  color: var(--text-main);
}

.form-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.input-field {
  width: 100%;
  height: 55px;
  background: var(--input-bg);
  border-radius: var(--border-radius-xl);
  border: 2px solid transparent;
  padding: 18px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-field:focus {
  outline: none;
  background: #ffffff;
  border-color: #6a0dad;
  box-shadow: 0 0 0 4px rgba(106, 13, 173, 0.1);
}

.submit-btn {
  width: 100%;
  height: 56px;
  background: var(--button-gradient);
  border: none;
  border-radius: var(--border-radius-xl);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Google Auth Button */
.google-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-xl);
  color: #374151;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.google-auth-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.footer-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-link a {
  color: #4c0080;
  font-weight: 700;
  text-decoration: none;
}

.footer-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1100px) {
  .main-container {
    flex-direction: column;
  }
  .branding-panel,
  .signup-section {
    width: 100%;
    min-width: 100%;
    padding: 64px 24px;
  }
  .branding-panel {
    min-height: auto;
  }
}

/* OTP Specific Styles */
.otp-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px;
  width: 50%;
  min-width: 640px;
  background: #f3f3f5;
}

.otp-card {
  background: #ffffff;
  box-shadow: 0px 20px 40px rgba(106, 13, 173, 0.08);
  border-radius: 18px;
  padding: 40px;
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.otp-icon-container {
  background: #f1daff;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.otp-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.otp-input {
  width: 56px;
  height: 64px;
  background: var(--input-bg);
  border-radius: 16px;
  border: 2px solid transparent;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.otp-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #6a0dad;
  box-shadow: 0 0 0 4px rgba(106, 13, 173, 0.1);
}

.timer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.timer-text span {
  font-weight: 700;
  color: var(--text-main);
}

.resend-btn {
  background: none;
  border: none;
  color: #4c0080;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.resend-btn.active {
  opacity: 1;
  pointer-events: auto;
}

.resend-btn:hover {
  text-decoration: underline;
}

.back-to-login {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  margin-top: 32px;
  transition: color 0.3s ease;
}

.back-to-login:hover {
  color: #4c0080;
}

/* OTP Branding Panel Layout */
.otp-visual-cluster {
  position: relative;
  width: 544px;
  height: 432px;
  margin-top: 48px;
}

.otp-product {
  position: absolute;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-size: cover;
  background-position: center;
}

.otp-product-iphone {
  width: 140px;
  height: 280px;
  left: 80px;
  top: 40px;
  border-radius: 32px;
  transform: rotate(-10deg);
}

.otp-product-watch {
  width: 100px;
  height: 100px;
  left: 280px;
  top: 40px;
  border-radius: 50%;
  transform: rotate(15deg);
}

.otp-product-earbuds {
  width: 100px;
  height: 100px;
  left: 280px;
  top: 200px;
  border-radius: 16px;
  transform: rotate(-5deg);
}

/* =========================
   MOBILE RESPONSIVENESS
========================= */
@media (max-width: 992px) {
  .main-container {
    flex-direction: column;
    min-height: auto;
  }
  .branding-panel, .signup-section {
    min-width: 100%;
    width: 100%;
    padding: 60px 20px;
    flex: none;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 16px;
    max-width: 380px;
    margin: 0 auto;
  }
  .product-card {
    padding: 12px;
  }
  .product-image {
    height: 100px;
  }
  .otp-visual-cluster {
    transform: scale(0.5);
    margin-top: -80px;
    margin-bottom: -80px;
  }
  .branding-content {
    gap: 20px;
  }
  .logo-text {
    font-size: 42px;
    line-height: 48px;
    margin-bottom: 8px;
  }
  .sub-greeting {
    font-size: 16px;
    line-height: 22px;
  }
}
