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

:root {
  --color-bg: #000000;
  --color-surface: rgba(22, 22, 27, 0.45);
  --color-surface-hover: rgba(38, 38, 47, 0.6);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  --color-primary: #000000;
  --color-accent-1: #daff47; /* Neon Lime */
  --color-accent-2: #14ff99; /* Neon Green */
  
  --color-danger: #ef4444;
  --color-success: #10b981;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow-1: 0 0 15px rgba(218, 255, 71, 0.25);
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Split Screen Layout */
.auth-split-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Side: Visual Branding */
.auth-brand-section {
  width: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background-image: url('../images/trading-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-brand-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(20, 20, 25, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-glass);
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.auth-brand-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, var(--color-accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-brand-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.auth-brand-desc strong {
  color: var(--color-accent-2);
  font-weight: 600;
}

/* Right Side: Form Container */
.auth-form-section {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  background-color: #050505;
  position: relative;
  z-index: 10;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

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

/* Glassmorphism Auth Card */
.glass-auth-card {
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

/* Subtle glowing accent inside card */
.glass-auth-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(218, 255, 71, 0.03) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.glass-auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(218,255,71,0.05);
  transition: var(--transition-normal);
}

.auth-logo-wrap:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(218,255,71,0.2), 0 0 20px rgba(218,255,71,0.1);
  transform: translateY(-2px);
}

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

.auth-company-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Alerts */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.4;
  backdrop-filter: blur(10px);
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  animation: shakeAlert 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-4px); }
  30% { transform: translateX(4px); }
  45% { transform: translateX(-2px); }
  60% { transform: translateX(2px); }
}

/* Form Controls */
.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

.form-control {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-1);
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(218, 255, 71, 0.1);
}

.form-control::placeholder {
  color: var(--color-text-muted);
}

/* Checkbox & Links */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  margin-top: 8px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
}

.remember-checkbox {
  accent-color: var(--color-accent-1);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.auth-link {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.auth-link:hover {
  color: var(--color-text-primary);
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.auth-link-primary {
  color: var(--color-accent-1);
}

.auth-link-primary:hover {
  color: #e6ff70;
  text-shadow: 0 0 10px rgba(218, 255, 71, 0.4);
}

/* Button */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  background-color: var(--color-accent-1);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-sans);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-glow-1);
}

.btn-auth:hover {
  background-color: #e6ff70;
  box-shadow: 0 0 20px rgba(218, 255, 71, 0.4);
  transform: translateY(-1px);
}

.btn-auth svg {
  width: 18px;
  height: 18px;
}

/* Form Validation styling */
.form-error-msg {
  display: block;
  font-size: 12px;
  color: #f87171;
  margin-top: 6px;
}

/* Responsiveness */
@media (max-width: 1100px) {
  .auth-brand-section {
    width: 45%;
    padding: 40px;
  }
  .auth-form-section {
    width: 55%;
    padding: 40px;
  }
}

@media (max-width: 900px) {
  .auth-split-layout {
    flex-direction: column;
  }
  .auth-form-section {
    width: 100%;
    order: -1;
    min-height: 100vh;
  }
  .auth-brand-section {
    width: 100%;
    order: 0;
    min-height: 500px;
  }
}
