/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
}

.login-container {
  min-height: 100vh;
  background: #ffffff;
}

/* Left Side - Login Form */
.login-form-section {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.login-content {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo-container {
  margin-bottom: 2rem;
  animation: logoFadeIn 1s ease-out;
}

.logo {
  display: inline-block;
  height: 150px;
  width: 170px;
}

.welcome-section {
  margin-bottom: 2.5rem;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.5;
}

.login-form {
  text-align: left;
  margin-bottom: 2rem;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

.form-group {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.5s; }
.form-group:nth-child(2) { animation-delay: 0.6s; }
.form-group:nth-child(3) { animation-delay: 0.7s; }

.form-label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db !important;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-input-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
}

.password-toggle:hover {
  color: #374151;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

.form-check {
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-right: 0.5rem;
}

.form-check-label {
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.forgot-password-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%) !important;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: fadeInUp 0.6s ease-out 0.9s both;
}

.btn-login:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%) !important;
  transform: translateY(-1px);
}

.footer-links {
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.footer-links-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.footer-link {
  font-size: 0.75rem;
  color: #6b7280;
  text-decoration: none;
}

.footer-link:hover {
  color: #374151;
  text-decoration: underline;
}

/* Right Side - Dashboard Preview */
.dashboard-preview-section {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.dashboard-content {
  width: 100%;
  max-width: 600px;
  color: white;
  position: relative;
  z-index: 2;
}

.dashboard-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white;
}

.dashboard-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-card:nth-child(5) { animation-delay: 0.5s; }
.dashboard-card:nth-child(6) { animation-delay: 0.6s; }

.card-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.3);
}

.card-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: white;
  animation: numberPulse 2s ease-in-out infinite;
}

.card-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.card-content p {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.card-trend {
  font-size: 0.75rem;
  font-weight: 500;
}

.card-trend.positive {
  color: #10b981;
}

.card-status {
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* Chart Styles */
.mini-chart {
  height: 60px;
  position: relative;
  margin: 1rem 0;
}

.chart-line {
  position: absolute;
  height: 2px;
  width: 100%;
  border-radius: 1px;
}

.chart-line.investment {
  background: #10b981;
  top: 20px;
}

.chart-line.returns {
  background: #f59e0b;
  top: 40px;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
}

.donut-chart {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(
    #10b981 0deg 162deg,
    #3b82f6 162deg 306deg,
    #f59e0b 306deg 360deg
  );
  margin: 1rem auto;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.real-estate {
  background: #10b981;
}

.legend-color.technology {
  background: #3b82f6;
}

.legend-color.manufacturing {
  background: #f59e0b;
}

.activity-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.activity-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.activity-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.activity-status.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.activity-time {
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container .row {
    flex-direction: column;
  }
  
  .login-form-section {
    order: 1;
    padding: 1rem;
  }
  
  .dashboard-preview-section {
    display: none;
  }
  
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .dashboard-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-links-container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Alert Styles */
.alert {
  border-radius: 8px;
  border: none;
  margin-bottom: 1rem;
}

.alert-danger {
  background: #fef2f2;
  color: #dc2626;
  border-left: 4px solid #dc2626;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  opacity: 0.5;
}

.btn-close:hover {
  opacity: 0.75;
}

/* Widget Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo and Form Animations */
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Additional hover effects for icons */
.card-icon {
  transition: all 0.3s ease;
}

/* Pulse animation for numbers */
.card-content h3 {
  animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
