/* Login Page Styles - Modern Split Screen Design */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-gradient-start: #0a0e1a;
  --bg-gradient-end: #1a1f35;
  --card-bg: rgba(30, 41, 59, 0.5);
  --border-color: rgba(148, 163, 184, 0.2);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #10b981;
  --accent-secondary: #3b82f6;
  --accent-hover: #059669;
  --feature-card-bg: rgba(16, 185, 129, 0.05);
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.main-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left Panel - Features & Branding */
.left-panel {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-content {
  width: 100%;
  max-width: 460px;
}

.logo-link {
  display: inline-block;
  margin-bottom: 3rem;
}

.logo {
  width: auto;
  height: auto;
  max-width: 200px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.login-header {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
}

.btn-github {
  background: #ffffff;
  color: #24292e;
  border: 1px solid #e1e4e8;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-github:hover {
  background: #f6f8fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #24292e;
  border-color: #d0d7de;
}

.btn-github svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-text {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-text a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: var(--accent-primary);
}

.footer-text .separator {
  margin: 0 0.5rem;
  color: var(--border-color);
}

/* Right Panel - Login Form */
.right-panel {
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
}

.brand-content {
  max-width: 560px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.brand-header {
  margin-bottom: 3rem;
  text-align: center;
}

.brand-icon {
  width: 80px;
  height: 80px;
  background: var(--feature-card-bg);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.brand-icon i {
  font-size: 2.5rem;
  color: var(--accent-primary);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.brand-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--feature-card-bg);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.brand-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.trust-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.trust-text i {
  color: var(--accent-primary);
  font-size: 1.25rem;
}

/* Alert Styling */
.alerts-container {
  margin-bottom: 1.5rem;
}

.alert {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.alert-danger {
  border-left: 4px solid #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.alert-success {
  border-left: 4px solid var(--accent-primary);
  background: rgba(16, 185, 129, 0.1);
}

.alert-warning {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
  }

  .left-panel {
    display: none;
  }

  .right-panel {
    min-height: 100vh;
  }
}

@media (max-width: 768px) {
  .right-panel {
    padding: 2rem 1.5rem;
  }

  .login-content {
    max-width: 100%;
  }

  h1 {
    font-size: 1.875rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .logo {
    max-width: 160px;
  }

  .logo-link {
    margin-bottom: 2rem;
  }

  .login-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .right-panel {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.9375rem;
  }

  .btn-github {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  .footer-text {
    font-size: 0.8125rem;
    margin-top: 2rem;
  }
}

/* Desktop large screens - optimize feature grid */
@media (min-width: 1400px) {
  .brand-content {
    max-width: 640px;
  }

  .features-grid {
    gap: 2rem;
  }

  .feature-card {
    padding: 2rem;
  }
}
