/*
CHANGE LOG
File: /var/www/html/nsgia.com/static/css/auth.css
Document Type: CSS Stylesheet
Purpose: Green-themed styling for simple auth forms - login, register, password reset
Main App: nsgia_app.py
Blueprint: simple_auth_mvp_bp.py
Templates: login.html, register.html, password_reset_request.html, password_reset.html
Context: Professional green styling for MVP auth system on nsgia.com
Version History:
2025-08-31 v1.1 - Fixed green gradient and wider cards to prevent truncation
2025-08-31 v1.0 - Created shared CSS for simple auth MVP
*/

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #28a745 0%, #00b884 100%);
  min-height: 100vh;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 24px;
}

.auth-form {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-bottom: 8px;
  font-weight: 500;
}

.input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  outline: none;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.input::placeholder {
  color: #9ca3af;
}

.submit-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #28a745;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background: #218838;
}

.submit-btn:active {
  background: #1e7e34;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.auth-links a {
  font-size: 14px;
  color: #28a745;
  text-decoration: none;
  font-weight: 500;
}

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

.flash-message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.flash-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.required {
  color: #dc2626;
}

.show-pass {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 14px;
}

.show-pass input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.auth-note {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #0c4a6e;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-note strong {
  color: #1e40af;
}

@media (max-width: 600px) {
  .auth-container {
    padding: 16px;
  }
  
  .auth-form {
    max-width: 100%;
    padding: 24px 20px;
  }
  
  .auth-title {
    font-size: 22px;
  }
  
  .auth-links {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
