/* FIRSTSOLAR - Login Page Additional Styles */

/* Error message */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.error-message svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Success message */
.success-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: 0.75rem;
    color: #16a34a;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

/* Form extras row (remember me + forgot password) */
.form-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Checkbox styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--public-text-muted);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.375rem;
  border: 1px solid var(--public-border);
  background: var(--public-surface-soft);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 0.3125rem;
  top: 0.125rem;
  width: 0.3125rem;
  height: 0.5rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.checkbox-label:hover .checkbox-custom {
  border-color: var(--brand-primary);
}

.checkbox-text {
  line-height: 1;
}

/* Forgot password link */
.forgot-link {
  font-size: 0.875rem;
  color: var(--brand-primary);
  font-weight: 500;
  transition: color 0.15s ease;
}

.forgot-link:hover {
  color: #16a34a;
  text-decoration: underline;
}

/* Footer link adjustments for login page */
.footer-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--public-text-muted);
  margin-top: 0.5rem;
}

.footer-link a {
  color: var(--brand-primary);
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-link a:hover {
  color: #16a34a;
  text-decoration: underline;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .form-extras {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
}
