/* Authentication Pages (Login/Register) */

/* Ensure messages visibility with auth container */
body.auth-container {
  padding-bottom: 0 !important;
  padding-top: 0;
}

/* Layout: Two-column on desktop, stacked on mobile */
.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  align-items: center;
  margin-bottom: 80px;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .auth-showcase {
    order: 2;
  }
  
  .auth-form-section {
    order: 1;
  }
}

/* Form Section */
.auth-form-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

.auth-card h1 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  color: var(--fg);
}

.auth-card p.subtitle {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 1.5rem 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-form label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.auth-form button {
  padding: 0.9rem 1.5rem;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.auth-form button:hover {
  background: #0052a3;
}

.auth-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Form Actions */
.auth-form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.auth-form-actions a {
  text-align: center;
  color: #0066cc;
  text-decoration: none;
  font-size: 1.2rem;
}

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

.auth-form-actions .divider {
  margin: 0;
  border-top: 1px solid var(--border);
}

.auth-form-actions .links-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.9rem;
}

.auth-form-actions .links-group a {
  color: #0066cc;
}

/* Account Section Divider */
.auth-account-section {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  text-align: center;
}

.auth-account-prompt {
  color: #666;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.auth-account-link {
  margin-top: 0.5rem;
  display: inline-block;
  font-weight: 600;
  font-size: 2.1rem;
}

/* Narrow wrapper for password reset pages */
.auth-wrapper-narrow {
  max-width: 500px;
  grid-template-columns: 1fr;
}

/* Centered form actions */
.auth-form-actions-center {
  text-align: center;
}

/* Help text under form inputs */
.auth-help-text {
  color: #666;
  display: block;
  margin-top: 0.3rem;
}

/* Error Styles */
.auth-card .error {
  background: #fee;
  border: 1px solid #f88;
  color: #800;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.auth-card .field-error {
  color: #a00;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.info-box {
  background: #e8f4f8;
  border-left: 4px solid #0066cc;
  padding: 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 1rem;
}

.info-box strong {
  color: #0066cc;
}

/* Showcase Section */
.auth-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.showcase-hero {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.showcase-hero h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
}

.showcase-hero p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.5;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-card .feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.feature-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--fg);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Demo User Notice */
.demo-notice {
  background: #f0f8ff;
  border: 1px solid #0066cc;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #333;
}

.demo-notice strong {
  color: #0066cc;
}

.demo-notice code {
  background: rgba(0, 102, 204, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
  font-weight: 600;
}

/* Screenshots Container */
.screenshots-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.screenshot-placeholder {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-placeholder strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

/* Hide showcase on mobile */
@media (max-width: 768px) {
  .auth-showcase {
    display: none;
  }
  
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-card h1 {
    font-size: 1.5rem;
  }
}

/* Medium screens: show some showcase */
@media (max-width: 1024px) and (min-width: 769px) {
  .auth-wrapper {
    gap: 1rem;
  }
  
  .showcase-hero {
    padding: 1.5rem;
  }
  
  .showcase-hero h2 {
    font-size: 1.4rem;
  }
}

/* Tablet adjustments */
@media (max-width: 912px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
  }
  
  .auth-showcase {
    display: flex;
  }
}