/* ==========================================================================
   Okami-V3 Login Prototype Styling (Premium Light Theme - Ultimate Edition)
   ========================================================================== */

:root {
  /* Color Tokens - Official Okami Gradient (Refined Ultimate Edition) */
  --color-blue: #0082FF;
  --color-purple: #7B61FF;
  --color-pink: #FF4B72;
  --color-primary-gradient: linear-gradient(135deg, var(--color-blue) 0%, var(--color-pink) 100%);
  
  --color-bg-base: #f6f8fb;
  --color-bg-gradient: linear-gradient(180deg, #f6f8fb 0%, #e9edf4 100%);
  
  /* UX Panel & Interactive Tokens */
  --color-panel-bg: rgba(255, 255, 255, 0.65);
  --color-panel-border: rgba(255, 255, 255, 0.45);
  --shadow-panel: 0 30px 60px rgba(18, 19, 25, 0.05), 0 10px 20px rgba(18, 19, 25, 0.02);
  
  /* Input & Button (Solid Surface to distinguish from Glass Panel) */
  --color-input-bg: #ffffff;
  --color-input-border: rgba(123, 97, 255, 0.15);
  --color-input-focus-border: var(--color-purple);
  
  --color-btn-secondary-bg: #edf1f7;
  --color-btn-secondary-hover-bg: #ffffff;
  --color-btn-secondary-border: rgba(18, 19, 25, 0.05);
  
  --color-text-main: #121319;
  --color-text-muted: #64748b;
  
  /* State Colors */
  --color-error-bg: #fef2f2;
  --color-error-text: #ef4444;
  --color-error-border: rgba(239, 68, 68, 0.2);
  
  --color-success-bg: #f0fdf4;
  --color-success-text: #22c55e;
  --color-success-border: rgba(34, 197, 94, 0.2);
  
  /* Fonts & Transitions */
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

* {
  box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, h6, p, form, label, input, textarea, button {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-base);
  background-image: var(--color-bg-gradient);
  color: var(--color-text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  padding: 24px;
  box-sizing: border-box;
}

/* ==========================================================================
   Background Aurora Decorators (Depth & Premium Feel)
   ========================================================================== */
.aurora-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.06;
  mix-blend-mode: multiply;
  animation: aurora-float 20s infinite alternate ease-in-out;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--color-blue);
  top: -10%;
  left: -10%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: var(--color-pink);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes aurora-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 50px) scale(1.1); }
}

/* ==========================================================================
   Interactive Mode Selection Header (RedirectMode)
   ========================================================================== */
.mode-selector-header {
  position: absolute;
  top: 24px;
  display: flex;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  z-index: 10;
}

.mode-tab {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mode-tab.active {
  background: var(--color-text-main);
  color: #ffffff;
}

/* ==========================================================================
   Main Container (2-Column Layout)
   ========================================================================== */
.login-container {
  display: flex;
  width: 1120px;
  max-width: 100%;
  height: 720px;
  max-height: calc(100vh - 48px);
  background: var(--color-panel-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--color-panel-border);
  border-radius: 32px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ==========================================================================
   Left Column: Brand & 3D Cards Area (Visual WOW)
   ========================================================================== */
.brand-column {
  flex: 1.1;
  background: linear-gradient(135deg, rgba(240, 244, 248, 0.8) 0%, rgba(225, 232, 240, 0.8) 100%);
  border-right: 1px solid rgba(18, 19, 25, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 48px;
  position: relative;
  overflow-y: auto;
  min-height: 0;
}

/* Interactive Floating Cards Showcase */
.cards-showcase {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
}

.card-3d-wrapper {
  position: relative;
  width: 340px;
  height: 215px;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}

.credit-card-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(220, 225, 235, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateZ(45px);
  backface-visibility: hidden;
  overflow: hidden;
}

.credit-card-3d::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(123, 97, 255, 0.05) 50%, transparent 80%);
  pointer-events: none;
  transform: rotate(-15deg);
  transition: transform 0.1s ease;
}

.card-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37 0%, #f9e7b9 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card-chip::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  top: 0;
  left: 0;
}

.card-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-logo-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-text-main);
}

.card-logo-text {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-details {
  color: var(--color-text-main);
}

.card-number {
  font-size: 18px;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  margin-bottom: 12px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-label {
  font-size: 8px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.card-holder {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.visa-logo {
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  color: #1a1f71;
}

/* Background floating cards */
.floating-bg-card {
  position: absolute;
  width: 320px;
  height: 200px;
  border-radius: 20px;
  filter: blur(0.5px);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-black {
  background: linear-gradient(135deg, #181a20 0%, #0d0e12 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transform: rotate(-15deg) translate(-40px, -50px) scale(0.9) translateZ(-50px);
  opacity: 0.75;
}

.card-gold {
  background: linear-gradient(135deg, #2b2e36 0%, #1e2026 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transform: rotate(10deg) translate(50px, 60px) scale(0.85) translateZ(-80px);
  opacity: 0.6;
}

/* Brand Title & 3D Interactive Wolf Logo Section */
.brand-footer {
  text-align: center;
  z-index: 2;
}

.wolf-logo-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px auto;
  filter: drop-shadow(0 8px 16px rgba(123, 97, 255, 0.18));
  cursor: pointer;
}

.wolf-logo-svg {
  width: 100%;
  height: 100%;
}

.wolf-logo-svg path {
  fill: var(--color-text-main);
  stroke: none;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--color-blue), var(--color-pink), var(--color-blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-text 4s linear infinite;
}

@keyframes rainbow-text {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 4px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ==========================================================================
   Right Column: Form & Multi-Stage View Area
   ========================================================================== */
.form-column {
  flex: 0.9;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.35);
  overflow-y: auto;
  min-height: 0;
}

/* Multilingual Lang Selector ( JA / EN ) */
.lang-selector-container {
  position: absolute;
  top: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.globe-icon {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.lang-select {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  outline: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.lang-select:hover {
  background: rgba(18, 19, 25, 0.05);
}

/* ==========================================================================
   Multi-stage Steps (Slide/Fade Animations)
   ========================================================================== */
.form-step {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  width: 100%;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-header {
  margin-bottom: 28px;
}

.form-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-text-main);
}

.form-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 16px;
  position: relative;
}

.input-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

/* Solid Input Panels */
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 12px;
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 4px rgba(18, 19, 25, 0.02);
}

/* Gradient Glowing Border on Focus */
.form-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 1px var(--color-purple), 0 8px 16px rgba(123, 97, 255, 0.08);
}

.input-password {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.password-toggle-btn:hover {
  color: var(--color-text-main);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.forgot-password-link {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-top: -8px;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.forgot-password-link:hover {
  color: var(--color-blue);
}

/* ==========================================================================
   Buttons (Solid Surface & Sparkle Design)
   ========================================================================== */

/* Primary Action Button (Formula 1 Sparkle & Glow) */
.btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-primary-gradient);
  border: none; /* Remove border to keep it clean and flat */
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  
  /* Standard shadow identical to other tactile elements */
  box-shadow: 0 4px 6px rgba(18, 19, 25, 0.02);
  transition: var(--transition-smooth);
}

.btn-text {
  position: relative;
  z-index: 2;
}

/* Hover State: Simply scales slightly and drops a soft colored glow, identical animation-curve to secondary buttons */
.btn-primary:hover {
  filter: brightness(1.04); /* Smooth glow effect without heavy animations */
  transform: translateY(-1.5px);
  box-shadow: 0 8px 16px rgba(0, 161, 245, 0.12), 0 2px 4px rgba(18, 19, 25, 0.02);
}

/* Active State: Springy Click */
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(18, 19, 25, 0.02);
}

/* Dark Solid Variant for Logout button */
.btn-primary.btn-dark {
  background: var(--color-text-main);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-primary.btn-dark:hover {
  filter: brightness(1.08);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(18, 19, 25, 0.15);
}

.btn-primary.btn-dark:hover .btn-text {
  color: #ffffff;
}

/* Or Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(18, 19, 25, 0.08);
}

.divider:not(:empty)::before {
  margin-right: .75em;
}

.divider:not(:empty)::after {
  margin-left: .75em;
}

/* Secondary Web3 Buttons (Solid contrast) */
.btn-secondary {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--color-btn-secondary-bg);
  border: 1px solid var(--color-btn-secondary-border);
  border-radius: 12px;
  color: var(--color-text-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(18, 19, 25, 0.02);
}

.btn-secondary:hover {
  background: var(--color-btn-secondary-hover-bg);
  border-color: rgba(123, 97, 255, 0.3);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 16px rgba(123, 97, 255, 0.06), 0 2px 4px rgba(18, 19, 25, 0.02);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(18, 19, 25, 0.02);
}

.btn-secondary-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary-icon svg {
  width: 100%;
  height: 100%;
}

.btn-secondary-icon.passkey {
  color: var(--color-primary-dark);
}

.btn-secondary-icon.walletconnect {
  filter: drop-shadow(0 2px 4px rgba(59, 153, 252, 0.15));
}

.btn-secondary-icon.mnemonic {
  color: var(--color-text-main);
}

.social-logins {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.social-logins .btn-secondary {
  margin-bottom: 0;
}

.signup-wrapper {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.signup-link {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-fast);
  margin-left: 4px;
}

.signup-link:hover {
  text-decoration: underline;
  color: var(--color-pink);
}

/* ==========================================================================
   Stage 2: MFA OTP Verification Styles
   ========================================================================== */
.otp-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 24px 0;
}

.otp-input {
  width: 50px;
  height: 56px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 10px;
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.otp-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--color-purple), 0 8px 16px rgba(123, 97, 255, 0.12);
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.btn-back-link:hover {
  color: var(--color-text-main);
}

.btn-back-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Stage 3: Interactive Security Settings (Link/Unlink Simulator)
   ========================================================================== */
.security-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(123, 97, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.security-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.security-item-icon {
  width: 24px;
  height: 24px;
  color: var(--color-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-item-icon svg {
  width: 100%;
  height: 100%;
}

.security-item-details {
  text-align: left;
}

.security-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-main);
}

.security-item-identifier {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 2px;
  font-family: monospace;
}

/* Action Buttons within Security List */
.btn-unlink {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-error-text);
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-unlink:hover {
  background: #fecaca;
  transform: translateY(-1px);
}

.btn-link-action {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-purple);
  background: rgba(123, 97, 255, 0.08);
  border: 1px solid rgba(123, 97, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-link-action:hover {
  background: rgba(123, 97, 255, 0.15);
  transform: translateY(-1px);
}

/* User Profile Mini Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(123, 97, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(123, 97, 255, 0.08);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
}

.user-meta-info {
  text-align: left;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-main);
}

.user-role-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-purple);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   Alert Banners & Simulated Toasts
   ========================================================================== */
.alert-banner {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  animation: banner-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.alert-banner.error {
  display: flex;
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border: 1px solid var(--color-error-border);
}

.alert-banner.success {
  display: flex;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border: 1px solid var(--color-success-border);
}

.alert-banner-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes banner-pop {
  0% { opacity: 0; transform: scale(0.95) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Simulated Popup Toast Notification */
.toast-notification {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 1px solid rgba(123, 97, 255, 0.15);
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-main);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--color-success-text);
}


/* ==========================================================================
   Responsive and Mobile Optimization (Strict Compliance with ProjectRules)
   ========================================================================== */

@media (max-width: 900px) {
  body {
    padding: 16px;
  }

  .login-container {
    flex-direction: column;
    height: auto;
    max-height: 100%;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    margin: auto;
    /* Bring back the premium card look */
    background: var(--color-panel-bg);
    border: 1px solid var(--color-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  /* Brand column scales down and acts as header */
  .brand-column {
    padding: 24px 24px 16px 24px;
    border-right: none;
    border-bottom: 1px solid rgba(18, 19, 25, 0.05);
    background: linear-gradient(180deg, rgba(240, 244, 248, 0.9) 0%, rgba(230, 236, 244, 0.9) 100%);
    display: block;
    border-radius: 24px 24px 0 0;
  }
  
  .cards-showcase {
    display: none; /* Hide 3D cards showcase on small screen to avoid squishing */
  }
  
  .brand-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    flex-direction: row;
  }
  
  .wolf-logo-wrapper {
    width: 36px;
    height: 36px;
    margin: 0;
  }
  
  .brand-title-group {
    text-align: left;
  }
  
  .brand-title {
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--color-text-main);
  }
  
  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 2px;
    margin-top: 1px;
    color: var(--color-text-muted);
  }
  
  /* Form column expands on mobile */
  .form-column {
    flex: none;
    height: auto;
    padding: 24px 20px; /* Reduced internal margin */
    background: transparent;
    justify-content: flex-start;
  }
  
  .form-header {
    margin-bottom: 16px; /* Reduced */
    text-align: center;
  }
  
  .form-title {
    font-size: 20px; /* Reduced */
  }
  
  .form-subtitle {
    font-size: 11px; /* Reduced */
  }
  
  .lang-selector-container {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 460px) {
  .otp-input {
    width: 40px;
    height: 48px;
    font-size: 20px;
  }
}

/* ==========================================================================
   Height-Based Responsive Adjustments (To prevent scrollbars on short windows)
   ========================================================================== */

@media (max-height: 768px) and (min-width: 901px) {
  .brand-column, .form-column {
    padding: 24px 48px;
  }
  .form-header {
    margin-bottom: 16px;
  }
  .input-group {
    margin-bottom: 12px;
  }
  .forgot-password-link {
    margin-bottom: 16px;
  }
  .divider {
    margin: 12px 0;
  }
  .signup-wrapper {
    margin-top: 12px;
  }
  .wolf-logo-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 8px;
  }
  .cards-showcase {
    transform: scale(0.85);
    transform-origin: center center;
  }
}

@media (max-height: 640px) and (min-width: 901px) {
  .brand-column, .form-column {
    padding: 16px 32px;
  }
  .form-header {
    margin-bottom: 12px;
  }
  .form-title {
    font-size: 24px;
  }
  .input-group {
    margin-bottom: 8px;
  }
  .forgot-password-link {
    margin-bottom: 12px;
  }
  .divider {
    margin: 8px 0;
  }
  .btn-secondary {
    padding: 10px 14px;
    margin-bottom: 6px;
  }
  .btn-primary {
    padding: 12px;
  }
  .wolf-logo-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 4px;
  }
  .cards-showcase {
    transform: scale(0.7);
    transform-origin: center center;
  }
}
