/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
}

/* Only apply centering for login pages */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login Container */
.login-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  margin: 1rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #666;
  font-size: 0.9rem;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #555;
}

.form-group input {
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

/* Submit Button */
.btn-primary {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Flash Messages */
.flash-alert {
  background-color: #fee;
  color: #c33;
  padding: 0.75rem;
  border-radius: 4px;
  border-left: 4px solid #e74c3c;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.flash-notice {
  background-color: #efe;
  color: #363;
  padding: 0.75rem;
  border-radius: 4px;
  border-left: 4px solid #27ae60;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Links */
.forgot-password {
  text-align: center;
  margin-top: 1.5rem;
}

.forgot-password a {
  color: #3498db;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
  body {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }
  
  .login-container {
    padding: 1.5rem;
    margin: 0;
    box-shadow: none;
    border: 1px solid #e1e5e9;
  }
  
  .login-header h1 {
    font-size: 1.75rem;
  }
  
  .form-group input {
    padding: 0.625rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-primary {
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 320px) {
  .login-container {
    padding: 1rem;
  }
  
  .login-header h1 {
    font-size: 1.5rem;
  }
}
