/* ==========================================================================
   TYLO - Premium Log In Page CSS
   Theme: Black + White + Mint Glossy Premium
   ========================================================================== */

:root {
  --bold-black: #020202;
  --soft-black: #1a1a1a;
  --charcoal: #2a2a2a;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --bg-luxury: #f4f7f6;

  --mint-primary: #2ebf91;
  --mint-light: #a8ff78;
  --mint-gradient: linear-gradient(145deg, #a8ff78, #2ebf91);
  --mint-gloss-shadow: 0 8px 24px rgba(46, 191, 145, 0.25);
  
  --saffron-gradient: linear-gradient(145deg, #ff9933, #e67300);

  --border-delicate: 1px solid rgba(0, 0, 0, 0.06);
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  --error-red: #e74c3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.auth-body {
  background-color: var(--bg-luxury);
  color: var(--bold-black);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. PREMIUM HEADER PLACEHOLDER
   ========================================================================== */
.auth-header {
  background: var(--white);
  border-bottom: var(--border-delicate);
  padding: 12px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1536px;
  margin: 0 auto;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.header-logo {
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  background: var(--saffron-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.brand-subtitle {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 4px;
  background: var(--mint-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-action-area {
  flex: 1;
  display: flex;
  justify-content: center;
  opacity: 0.5;
  pointer-events: none;
}

.search-container {
  display: flex;
  background: var(--off-white);
  border-radius: 8px;
  padding: 6px 16px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #eaeaea;
}

.search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
}

.search-btn {
  background: transparent;
  border: none;
}

.search-icon-semantic {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  position: relative;
}
.search-icon-semantic::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 5px;
  background: var(--charcoal);
  bottom: -3px;
  right: -2px;
  transform: rotate(-45deg);
}

.user-actions {
  display: flex;
  gap: 24px;
  opacity: 0.5; /* Visual placeholder */
}

.action-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--soft-black);
}

/* ==========================================================================
   2. MAIN AUTH SECTION & BOX
   ========================================================================== */
.auth-main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-box {
  display: flex;
  width: 100%;
  max-width: 1000px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  min-height: 550px;
}

/* ==========================================================================
   3. LEFT BRANDING PANEL (40%)
   ========================================================================== */
.auth-left-panel {
  width: 40%;
  background: var(--mint-gradient);
  position: relative;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--bold-black);
}

.glossy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.left-panel-content {
  position: relative;
  z-index: 2;
}

.panel-brand-header {
  margin-bottom: 16px;
}

.panel-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--bold-black);
  position: relative;
  text-shadow: 2px 2px 0px rgba(255,255,255,0.3);
}

.panel-subtitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #0b4d36;
  display: block;
  margin-top: -4px;
}

.panel-tagline {
  font-size: 16px;
  font-weight: 500;
  color: #0d5c41;
  margin-top: 16px;
  line-height: 1.4;
}

.visual-composition {
  position: relative;
  z-index: 2;
  height: 250px;
  width: 100%;
  margin-top: 40px;
}

.laptop-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px 8px 0 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.screen-glow {
  position: absolute;
  inset: 6px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
  border-radius: 4px 4px 0 0;
}

.product-card-float {
  position: absolute;
  width: 80px;
  height: 100px;
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,1);
}

.card-1 { top: 20px; left: 10px; transform: rotate(-10deg); }
.card-2 { top: 40px; right: 10px; transform: rotate(15deg); }

/* ==========================================================================
   4. RIGHT LOGIN FORM PANEL (60%)
   ========================================================================== */
.auth-right-panel {
  width: 60%;
  padding: 50px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.auth-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}
.auth-step.is-active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-header { margin-bottom: 32px; }
.form-header h2 { font-size: 28px; font-weight: 800; color: var(--bold-black); margin-bottom: 8px; }
.form-header p { font-size: 14px; color: #666; }

/* Toggle Buttons (Phone/Email) */
.auth-method-toggle {
  display: flex;
  background: var(--off-white);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid #eaeaea;
}
.toggle-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.toggle-btn.is-active {
  background: var(--white);
  color: var(--bold-black);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.input-block { display: none; }
.input-block.is-active { display: block; }

/* Floating Label Inputs */
.input-group { position: relative; width: 100%; }
.form-input {
  width: 100%;
  padding: 22px 16px 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--bold-black);
  background: var(--off-white);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: var(--transition-smooth);
}
.form-input:focus {
  background: var(--white);
  border-color: var(--mint-primary);
  box-shadow: 0 0 0 4px rgba(46, 191, 145, 0.1);
}
.form-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #888;
  pointer-events: none;
  transition: var(--transition-smooth);
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mint-primary);
}
.form-input:not(:focus):not(:placeholder-shown) ~ .form-label { color: #888; }

/* Error States */
.input-group.has-error .form-input { border-color: var(--error-red); background: #fffafa; }
.input-group.has-error .form-input:focus { box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1); }
.input-group.has-error .form-label { color: var(--error-red) !important; }
.error-msg {
  display: block;
  font-size: 11px;
  color: var(--error-red);
  margin-top: 4px;
  padding-left: 4px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}
.input-group.has-error .error-msg { opacity: 1; }

/* Terms Line */
.terms-line { font-size: 12px; color: #777; line-height: 1.5; margin-top: -4px; }
.mint-link { color: var(--mint-primary); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.mint-link:hover { color: #1b8a5f; text-decoration: underline; }
.mint-link.is-disabled { color: #aaa; pointer-events: none; text-decoration: none; }

/* Button */
.btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  color: var(--bold-black);
  background: var(--mint-gradient);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--mint-gloss-shadow);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(46, 191, 145, 0.35);
  background: linear-gradient(145deg, #bdf0d5, #2ebf91);
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(46, 191, 145, 0.2); }

/* Switch Line */
.switch-line { text-align: center; font-size: 14px; color: var(--charcoal); margin-top: 16px; }
.bold-link { font-weight: 800; margin-left: 4px; }

/* ==========================================================================
   5. OTP BLOCK STYLING
   ========================================================================== */
.back-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
  display: inline-block;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--bold-black); }

.bold-text { font-weight: 800; color: var(--bold-black); }

.otp-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.otp-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 56px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--bold-black);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: var(--off-white);
  transition: var(--transition-smooth);
}
.otp-box:focus {
  background: var(--white);
  border-color: var(--mint-primary);
  box-shadow: 0 0 0 4px rgba(46, 191, 145, 0.1);
  outline: none;
}

.resend-block {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
}
.timer-text { color: #888; margin-right: 8px; }

/* ==========================================================================
   6. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .auth-right-panel { padding: 40px; }
  .panel-title { font-size: 36px; }
}

@media (max-width: 768px) {
  .auth-box { flex-direction: column; max-width: 500px; min-height: auto; }
  .auth-left-panel {
    width: 100%;
    padding: 30px;
    min-height: 180px;
    justify-content: center;
    border-radius: 24px 24px 0 0;
  }
  .visual-composition { display: none; }
  .auth-right-panel { width: 100%; padding: 30px 20px; }
  .header-container { padding: 8px 16px; }
  .search-action-area { display: none; }
  .otp-box { height: 48px; font-size: 20px; }
}