/* Index/Login Page Styles - Full Screen */
:root {
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --bg-gray: #f1f5f9;
  --text-main: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a, a:hover, a:focus, a:active {
  text-decoration: none !important;
  outline: none;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-gray);
  color: var(--text-main);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Login/Form Specific Container */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.auth-container {
  width: 100%;
  max-width: 480px;
}

.login-container {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 16px rgba(56, 189, 248, 0.3);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo i {
  font-size: 36px;
  color: var(--navy);
}

.login-header h1 {
  color: var(--navy);
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.login-header p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 320px;
  margin: 0 auto;
}

/* Form Styles */
.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  gap: 8px;
}

.form-group label i {
  color: var(--primary);
  font-size: 14px;
  width: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: var(--white);
  color: var(--text-main);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.btn-secondary {
  width: 100%;
  padding: 12px 24px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Landing Page Specific */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin: 0 auto 24px;
  letter-spacing: -0.05em;
  max-width: 900px;
}

.hero p {
  font-size: 22px;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Decorative Illustration Container */
.illustration-box {
  background: linear-gradient(135deg, var(--bg-gray) 0%, var(--white) 100%);
  border-radius: 40px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}

/* Split Section Layout */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .split-content {
    align-items: center;
  }
  
  .split-content ul {
    text-align: left;
    display: inline-block;
  }
}

.illustration-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.05;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  color: var(--primary);
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
}

/* Registration Page Multi-section */
.registration-container {
  max-width: 900px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Alerts */
.alert {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert.error {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

.alert.success {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}

.alert h4 {
  font-size: 16px;
  font-weight: 700;
}

.alert p {
  font-size: 14px;
}

.animate-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade {
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .registration-container {
    padding: 24px;
    margin: 20px 10px;
  }
}
