/* Auth Pages Shared Styles */

/* 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;
}

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

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

.auth-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;
}

.auth-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-group:nth-child(4) { animation-delay: 0.8s; }

.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;
  background: none;
  border: 1px solid #2563eb;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s ease;
}

.forgot-password-link:hover {
  background: #2563eb;
  color: white;
  text-decoration: none;
}

.forgot-password-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-auth {
  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-auth: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;
}

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

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

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border-left: 4px solid #16a34a;
}

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

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

/* Register Page Specific Styles */
.loader {
  display: flex; 
  align-content: center; 
  justify-content: center;
  padding: 14rem 0;
  position: relative;
  left: 2rem;
} 

.error {
  font-size: 12px;
  color: red;
}

.back {
  background: linear-gradient(268.71deg, #1d1d1d 15.85%, #252422 53.11%, #000000c7 98.08%);
  border-radius: 91px;
}

.product-label {
  border-radius: 5px;
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  color: #fff;
  cursor: pointer;
} 

input[type=checkbox] {
  display: none;
}

input[type=checkbox]:checked+.product-label {
  border: 1px solid #ff9800;
}

.primary {
  width: 25px;
  height: 25px;
  -webkit-border-radius: 25px;
  -moz-border-radius: 25px;
  border-radius: 25px;
  background: #F9CB0D;
}

.secondary {
  width: 25px;
  height: 25px;
  -webkit-border-radius: 25px;
  -moz-border-radius: 25px;
  border-radius: 25px;
  background: #f6a313;
}

.sixth-form {
  width: 25px;
  height: 25px;
  -webkit-border-radius: 25px;
  -moz-border-radius: 25px;
  border-radius: 25px;
  background: #383836;
}

/* Load Awesome Spinner */
.la-line-scale,
.la-line-scale > div {
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.la-line-scale {
  display: block;
  font-size: 0;
  color: #fff;
}

.la-line-scale.la-dark {
  color: #ffc107;
}

.la-line-scale > div {
  display: inline-block;
  float: none;
  background-color: currentColor;
  border: 0 solid currentColor;
}

.la-line-scale {
  width: 40px;
  height: 32px;
}

.la-line-scale > div {
  width: 4px;
  height: 32px;
  margin: 2px;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  -webkit-animation: line-scale 1.2s infinite ease;
  -moz-animation: line-scale 1.2s infinite ease;
  -o-animation: line-scale 1.2s infinite ease;
  animation: line-scale 1.2s infinite ease;
}

.la-line-scale > div:nth-child(1) {
  -webkit-animation-delay: -1.2s;
  -moz-animation-delay: -1.2s;
  -o-animation-delay: -1.2s;
  animation-delay: -1.2s;
}

.la-line-scale > div:nth-child(2) {
  -webkit-animation-delay: -1.1s;
  -moz-animation-delay: -1.1s;
  -o-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.la-line-scale > div:nth-child(3) {
  -webkit-animation-delay: -1s;
  -moz-animation-delay: -1s;
  -o-animation-delay: -1s;
  animation-delay: -1s;
}

.la-line-scale > div:nth-child(4) {
  -webkit-animation-delay: -.9s;
  -moz-animation-delay: -.9s;
  -o-animation-delay: -.9s;
  animation-delay: -.9s;
}

.la-line-scale > div:nth-child(5) {
  -webkit-animation-delay: -.8s;
  -moz-animation-delay: -.8s;
  -o-animation-delay: -.8s;
  animation-delay: -.8s;
}

.la-line-scale.la-sm {
  width: 20px;
  height: 16px;
}

.la-line-scale.la-sm > div {
  width: 2px;
  height: 16px;
  margin: 1px;
  margin-top: 0;
  margin-bottom: 0;
}

.la-line-scale.la-2x {
  width: 80px;
  height: 64px;
}

.la-line-scale.la-2x > div {
  width: 8px;
  height: 64px;
  margin: 4px;
  margin-top: 0;
  margin-bottom: 0;
}

.la-line-scale.la-3x {
  width: 120px;
  height: 96px;
}

.la-line-scale.la-3x > div {
  width: 12px;
  height: 96px;
  margin: 6px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-container .row {
    flex-direction: column;
  }
  
  .auth-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;
  }
}

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

@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);
  }
}

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

@-webkit-keyframes line-scale {
  0%, 40%, 100% {
    -webkit-transform: scaleY(.4);
    transform: scaleY(.4);
  }
  20% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }
}

@-moz-keyframes line-scale {
  0%, 40%, 100% {
    -webkit-transform: scaleY(.4);
    -moz-transform: scaleY(.4);
    transform: scaleY(.4);
  }
  20% {
    -webkit-transform: scaleY(1);
    -moz-transform: scaleY(1);
    transform: scaleY(1);
  }
}

@-o-keyframes line-scale {
  0%, 40%, 100% {
    -webkit-transform: scaleY(.4);
    -o-transform: scaleY(.4);
    transform: scaleY(.4);
  }
  20% {
    -webkit-transform: scaleY(1);
    -o-transform: scaleY(1);
    transform: scaleY(1);
  }
}

@keyframes line-scale {
  0%, 40%, 100% {
    -webkit-transform: scaleY(.4);
    -moz-transform: scaleY(.4);
    -o-transform: scaleY(.4);
    transform: scaleY(.4);
  }
  20% {
    -webkit-transform: scaleY(1);
    -moz-transform: scaleY(1);
    -o-transform: scaleY(1);
    transform: scaleY(1);
  }
}
