/* Login Page Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 1rem;
  box-sizing: border-box;
}

.login-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 340px;
  max-width: 90%;
  margin: 0 auto;
}

.login-form h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.6rem;
  line-height: 1.3;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
  font-weight: 300;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.form-group input:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  background-color: #fee;
  color: #c33;
  padding: 0.75rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  border: 1px solid #fcc;
  text-align: center;
}

/* Login Actions */
.login-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.create-user-btn {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.create-user-btn:hover:not(:disabled) {
  background: #667eea;
  color: white;
  transform: translateY(-1px);
}

.create-user-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}


/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 0 0 auto;
  min-width: 120px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
}

.btn-secondary:hover:not(:disabled) {
  background: #e9ecef;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Make buttons equal fixed width - target both regular and Mantine buttons */
.form-actions .btn,
.form-actions button,
.form-actions .mantine-Button-root {
  flex: none !important;
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
}

/* Create User Info */
.create-user-info {
  padding: 0 2rem 1.5rem 2rem;
  border-top: 1px solid #e9ecef;
  margin-top: 1rem;
  background: #f8f9fa;
  border-radius: 0 0 10px 10px;
}

.create-user-info p {
  margin: 1rem 0 0 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Password requirements styling */
.password-requirements {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6c757d;
  font-style: italic;
}

/* Password Requirements Indicators */
.password-requirements {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.requirement {
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
  color: #dc3545;
  transition: color 0.3s ease;
}

.requirement.valid {
  color: #28a745;
}

.requirement:before {
  content: '✗';
  margin-right: 0.5rem;
  font-weight: bold;
}

.requirement.valid:before {
  content: '✓';
}

/* Responsive Styles */

/* Small screens (phones in portrait) */

/* Very small screens */

/* Tablets in portrait mode */

/* Small laptops and regular screens */

/* Larger screens */

/* SSO Section */
.sso-section {
  margin: 1.5rem 0;
}

.divider {
  text-align: center;
  margin: 1.5rem 0 1rem 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e1e5e9;
}

.divider span {
  background: white;
  color: #666;
  padding: 0 1rem;
  font-size: 0.9rem;
  position: relative;
}

.sso-btn {
  width: 100%;
  padding: 0.75rem;
  background: #fff;
  color: #333;
  border: 2px solid #e1e5e9;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sso-btn:hover:not(:disabled) {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-1px);
}

.sso-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Registration Disabled Message */
.registration-disabled-message {
  text-align: center;
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}
