/* Authentication Pages Styles */
:root {
  --primary-color: #fa9b2f;
  --secondary-color: #2c3e50;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-color: #dee2e6;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* Navigation styles are now handled by home.css */

/* Auth Page */
.auth-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 40px 20px; /* Add top padding for fixed nav from home.css */
}

.auth-container {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #e67e22 100%);
  color: white;
  text-align: center;
  padding: 40px 30px;
}

.auth-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.auth-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.auth-form-container {
  padding: 40px 30px;
}

/* Forms */
.auth-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(250, 155, 47, 0.1);
}

.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  font-weight: normal !important;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0;
  margin-top: 2px;
  transform: scale(1.2);
}

.checkbox-label span {
  flex: 1;
}

.checkbox-label a {
  color: var(--primary-color);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: white;
  color: var(--dark-color);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn.primary:hover {
  background: #e67e22;
  border-color: #e67e22;
}

.btn.full-width {
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
}

/* Error Messages */
.error-message {
  color: var(--danger-color);
  font-size: 14px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: 6px;
  min-height: 20px;
}

/* Auth Links */
.auth-links {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

.auth-links p {
  margin-bottom: 8px;
}

.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Demo Credentials */
.demo-credentials {
  background: var(--light-color);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid var(--border-color);
}

.demo-credentials h3 {
  color: var(--secondary-color);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.demo-credentials p {
  margin-bottom: 12px;
  color: #666;
}

.demo-info {
  background: white;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-family: monospace;
  font-size: 14px;
}

/* Signup Benefits */
.signup-benefits {
  background: rgba(250, 155, 47, 0.05);
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid rgba(250, 155, 47, 0.2);
}

.signup-benefits h3 {
  color: var(--secondary-color);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.signup-benefits ul {
  list-style: none;
  padding: 0;
}

.signup-benefits li {
  padding: 8px 0;
  color: var(--dark-color);
  font-size: 15px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
}

.modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal[aria-hidden="false"] .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--light-color);
  color: var(--danger-color);
}

.modal h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Terms Content */
.terms-content {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.terms-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.terms-content li {
  margin-bottom: 8px;
}

/* Footer styles are now handled by home.css */

/* Responsive */
@media (max-width: 768px) {
  .auth-page {
    padding: 140px 15px 20px 15px; /* Account for mobile nav height */
  }
  
  .auth-header {
    padding: 30px 20px;
  }
  
  .auth-header h1 {
    font-size: 2rem;
  }
  
  .auth-form-container {
    padding: 30px 20px;
  }
  
  .modal-content {
    margin: 20px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .auth-header h1 {
    font-size: 1.8rem;
  }
  
  .btn.full-width {
    padding: 14px 20px;
    font-size: 16px;
  }
}