/* ==================== CSS Variables ==================== */
:root {
  --color-primary: #4f46e5;
  --color-primary-light: #818cf8;
  --color-primary-dark: #3730a3;
  --color-accent: #f472b6;
  
  --color-bg: #f8fafc;
  --color-bg-card: #ffffff;
  --color-bg-secondary: #f1f5f9;
  
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  
  --color-border: #e2e8f0;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==================== Reset & Base ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== Login Container ==================== */
.login-container {
  min-height: 100vh;
  width: 100vw;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

.login-split {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* ==================== Left Side - Banner ==================== */
.login-banner {
  flex: 1;
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.1), transparent 40%),
    radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.1), transparent 40%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 600px;
}

.banner-content .logo-section {
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.banner-content .logo-section.large {
  gap: 1.5rem;
}

.banner-content .logo-image-large {
  height: 100px;
  width: auto;
  animation: float 3s ease-in-out infinite;
}

.banner-text {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

/* ==================== Right Side - Form ==================== */
.login-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--color-bg-card);
  position: relative;
}

.login-header {
  margin-bottom: 2.5rem;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.login-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.login-header .subtitle {
  color: var(--color-text-secondary);
}

/* ==================== Form ==================== */
.login-form {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.input-with-icon {
  position: relative;
}

.input-icon-wrapper {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.input-with-icon input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-with-icon input:focus + .input-icon-wrapper,
.input-with-icon:focus-within .input-icon-wrapper {
  color: var(--color-primary);
}

/* ==================== Error Message ==================== */
.error-message {
  color: #ef4444;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ==================== Button ==================== */
.login-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ==================== Footer ==================== */
.login-footer {
  margin-top: 3rem;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.login-footer p {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ==================== Animations ==================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .login-split {
    flex-direction: column;
  }

  .login-banner {
    min-height: 200px;
    padding: 2rem;
  }

  .banner-content {
    max-width: 100%;
  }

  .banner-content .logo-image-large {
    height: 60px;
  }

  .banner-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .login-form-container {
    padding: 2rem 1.5rem;
  }

  .login-header h2 {
    font-size: 1.5rem;
  }

  .login-form {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .login-banner {
    min-height: 150px;
    padding: 1.5rem;
  }

  .banner-content .logo-image-large {
    height: 50px;
  }

  .login-form-container {
    padding: 1.5rem 1rem;
  }

  .login-header {
    margin-bottom: 2rem;
  }

  .login-header h2 {
    font-size: 1.25rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .input-with-icon input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
  }
}
